Skip Navigation

[Resolved] Styling a view generated with loop wizard in block editor

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 15 replies, has 2 voices.

Last updated by martinG-11 3 years, 9 months ago.

Assisted by: Shane.

Author
Posts
#2157153

Hi,

I created a view (Toolset→Views) and it basically works. But I am a bit overwhelmed by the huge amount of options. I tried to ad sorting, searching, pagination. But there are limits to my understanding.

I added the view to a page in block editor. I was hoping I could add sorting, searching, pagination in block editor via the GUI. But this seems not to be possible. It says "This is the preview of the "Publikationen" view" and "Edit in classic editor".

I saw in your tutorial that editing a view in block editor is possible (https://toolset.com/lesson-placement/lesson-placements-1647613-1622283/). How can I add search, sorting, pagination to my view in block editor? Can you assist me here? Thanks a lot!

#2157485

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Martin,

Thank you for getting in touch.

If the view was creating using the classic method and the classic then you aren't able to use the block editor to add the pagination. The paginations must be added by enabling the pagination section through your screen options when you edit the view.

The screen options can be found in the top right hand corner of your screen when you edit your classic view.

Now if you want to edit the view using the block builder then the view must've first been built with the block editor.

Thank,
Shane

#2157577

Hi Shane,
thanks a lot for your response!

I used the classic method because I need to display my view as a table. I first tried with block editor but table was not available. Is this correct, or can I achieve table output with block editor?

When staying with classic editor, can I find some in depth documentation or tutorials for this way of editing the view?

Hoping hear back from you soon.
Kind regards,
Martin

#2157667

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Screenshot 2021-09-01 at 3.42.11 PM.png

Hi Martin,

The table view is still available with our Block editor See Screenshot

When staying with classic editor, can I find some in depth documentation or tutorials for this way of editing the view?

Most of our documentation for the classic view has been updated to use the block editor so there isn't much. Only a few niche functions still have documentation. You can have a look at the legacy document below.
https://toolset.com/documentation/legacy-features/views-plugin/

Thanks,
Shane

#2158065
Bildschirmfoto 2021-09-02 um 09.51.30.jpg

Hi Shane,

Great, thanks for your assistance! The legacy documentation looks good. I will definitely dig into this...

And now I was also able to create a view with table output in block editor. Nice! But I am struggeling with adding fields to the table. How can I achieve this?

Kind regards,
Martin

#2158499

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Martin,

I would suggest using the block navigator to select the sections of the table that you want to edit, from there you can use the + button that appears to add the various blocks that you require.

Basically in your screenshot you've highlighted the table header, so I believe here you will need to add the names of the items that will be in the table header.

If you select the table body then you can add the blocks for the content that you will require in the table body. If you're still having challenges you can provide me with the login and a link to the page where you're setting up the table so that I can assist better.

Thanks,
Shane

#2159563

Hi Shane,
thanks again for your support!
I am right now in the process of modifying the view I created with legacy editor. It looks nice so far. Basically I want to rebuild a view from a Drupal site that I am migrating to WordPress.

This is the old Drupal view: hidden link
This is what I have so far achieved with Toolset view: hidden link (Pass: bAUstelle)

What is missing right now is the search functionality. Users should be able to search the table for Title, Year, "Schriftenreihe" and Authors. I looked at the legacy documentation (https://toolset.com/documentation/legacy-features/views-plugin/front-page-filters/) but I am stuck and lost 🙂 Can you provide me with information on how to integrate search to my view?

Many thanks in advance!
Martin

#2160095

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Martin,

If you're using the classic editor the search section might've been disabled.

To enable it go to your view and edit it. Scroll to the top and you should see the option in top right hand called Screen Options.

From there you can enable the "Search and Pagination" section and you should now get a section of your view for the custom search settings where you can add your frontend filters.

Thanks,
Shane

#2161835

Hi Shane,

thanks, but enabling the "Search and pagination" options was not the issue.

I was able to add search filters but the search isn't working. After clicking the submit button on frontend nothing happens. Can you have a look at it?

And I would like to add also a filter for searching the title. Where can I find this?

Thanks again for your help!
Regards,
Martin

#2161843

Hi Shane,

enabling the "Search and Pagination" section was not the issue.

I was able to add filters but the search isn't working. After clicking the submit button nothing happens. Can you pleaser have a look at it?

And I would also like to add a search for the title. Where can I find a filter for this?

Thanks again for your assistance.
Regards,
Martin

#2162209

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Martin,

Sure please provide the admin access for the site as well as a link to the page so that I can have a look.

Thanks,
Shane

#2162347

hidden link

#2162369

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Martin,

Thank you for the login. The issue should now be resolved.

The problem was that you added your filter content outside of the [wpv-filter-start] [wpv-filter-end] shortcodes.

You filter information must be placed between both these shortcodes for them to work.

Please let me know if eveything is ok now.

Thanks,
Shane

#2163361

Hi Shane,

thanks again 🙂

After clicking the search button something is happening now but all searches return no results. I don't understand whats wrong. Do I have to configure something else to make the search working?

Kind regards,
Martin

#2163571

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Martin,

Not sure what is happening here but the URL parameters for the search isn't being added to the URL so that the view can be filtered.

What I recommend that you do is to delete everything within the [wpv-filter-start] [wpv-filter-end] and then re-add the filters.

You will get a notice on your view to remove the query filters as well so please click on this to remove the corresponding query filters.

Once you've done this please proceed to re-add the filters to the view.

Thanks,
Shane