Skip Navigation

[Resolved] content layout editor gets hung, gutenberg crashes with toolset types

This thread is resolved. Here is a description of the problem and solution.

Problem:

In a nested views:
- Parent taxonomy view, query terms of taxonomy "Cohorts"

- Child post view, query "Companies" posts, filter by taxonomy "Cohorts" and "Category".

I need to group the results by taxonomy "Cohorts"

Solution:

There isn't such kind of built-in feature within Toolset Views plugin, but you can try the custom codes solution here:

https://toolset.com/forums/topic/content-layout-editor-gets-hung-gutenberg-crashes-with-toolset-types/page/2/#post-1723397

Relevant Documentation:

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 22 replies, has 2 voices.

Last updated by soniyaA 3 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1712185

I am trying to: create a page with filters on left hand side and results on right in a grid layout

Link to a page where the issue can be seen: private

I expected to see: I expected to create the page

Instead, I got: errors

Tried Content layout editor. Hit the plus sign, selected view for posts and for the past few minutes, it is hung on the following screen - hidden link

When I try to create two columns because I want the search on one side, and try to drag search to left column it throws following error
hidden link

#1712291

Hello,

Toolset Layouts plugin is in maintenance status, so if you are constructing new website, I suggest you try with Toolset Blocks plugin, The grid block can create responsive Columns and Grids too, see our document:
https://toolset.com/course-lesson/responsive-columns-and-grids/

You can get same UI as Toolset Views plugin by enable this option:
Dashboard-> Toolset-> Settings-> General:
in section "Editing experience", enable option: Show both the legacy and Blocks interface and let me choose which to use for each item I build

And you can follow our document to display the search form and search result in different places:
https://toolset.com/course-lesson/creating-a-custom-search/
section "Setting up the View search and results side-by-side"

#1717585

Thanks for sharing the link on side by side layout. We were creating a grid and working with that. It isn't very intuitive to include a grid WITHIN a view but thanks for sharing that tip 🙂

I need to achieve the following - which I am unable to right now. Any help with this will be highly appreciated

I have CPTs called companies that are associated with Cohort and Category. Cohort and Category are taxonomies. Each company is associated with multiple categories but just one cohort. I want to build a view to display the following (Tried nested views but unable to filter out how to display the filters in this case)

The view should be as follws
hidden link

On the right hand Side, I want to display the Companies Grouped by Cohorts with the Cohort name as the Title. On the left hand side, I want to see the filters (which I was able to setup). However if I try to create parent view for Cohort, then I am unable to setup these filters as they are not accessible :-/ How to deal with this?

Thanks for the help!!!

#1718927

I assume we are talking about this nested views:
- Parent taxonomy view, query terms of taxonomy "Cohorts"
- Child post view, query "Companies" posts, filter by taxonomy "Cohorts" and "Category".

There isn't such kind of built-in feature within Toolset Views plugin, if you want to group result by taxonomy "Cohorts", you won't be able to filter the result by "Category" taxonomy in parent taxonomy view, there isn't any direct relationship between taxonomy "Cohorts" and "Category", so you will see the result: unable to setup these filters as they are not accessible.

If you do not need to group the result by taxonomy "Cohorts", then it needs just one post view, for example:
- Query "Companies" posts
- filter by taxonomy "Cohorts" and "Category"

#1719283

Hello

Is there any way to get a view similar to what I have shared below
hidden link

It doesn't matter if the Cohorts are taxonomies OR CPTs. I just want to be able to show the filters to the left (I have already tried unsuccessfully with nested views - you have already mentioned the problems above) and on the right hand side, show the results BUT grouped by Cohorts. As mentioned earlier, it doesn't really matter whether cohorts are custom fields, or taxonomies, or other custom posts. If I can filter by these and show the results grouped by the Cohorts, that will be really great!

I saw some posts on creating parent views with item=@... I see a lot of the documentation around tags is no longer available on the website... so I am having a hard time figuring out all the options available with the tags inside the old classic editor for views. Could you please help me with this?

Is there any custom dev that we can do in order to achieve what I have mentioned above?

#1719329

I don't think it is a good idea to filter the result by taxonomy "Cohorts" and group by same taxonomy "Cohorts", it will conducts other problems, for example:
"Post A" has two "Cohorts" terms: term 1, term 2.

Even you can use custom codes to achieve what you want, you will get duplicated items(Post A) in both two result groups: term 1, term 2.

Anyway, according to our support policy, we don't provide custom codes support:
https://toolset.com/toolset-support-policy/
You can also check it with our Toolset Contractors for custom code issues:
https://toolset.com/contractors/

For the new question: item=@... please check our document:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/item-attribute/

#1719393

Hello.

Each Company will ONLY belong to 1 cohort.
As mentioned earlier, it doesn't matter whether we use taxonomy or something else. My question specifically is HOW do I create the view shown in the screenshot. To reiterate - each company belongs to ONLY 1 cohort. In any case, even if it was a many to many relation, my question isn't a request for a suggestion on whether I should group them or not. My question to be clear is - HOW DO I CREATE THE VIEW THAT I HAVE SHARED IN THE SCREENSHOT? Thanks for your quick response!

#1719803

Can you please help answer this or assign this to another support person who knows the answer? Thanks!

#1720441

There do exists another workaround without custom codes, but the workaround requires submit button, and you will need to disable AJAX search feature, which is not exact same as your screenshot

For example:
1) Edit the child post view:
Setup the custom search form + submit button, in section "Custom Search Settings", enable option: Full page refresh when visitors click on the search button

2) Edit the parent taxonomy view, in view's loop, display above child post view using option: Only the search results

3) Create a page, display:
- Child post view, with option: Only the search form
- Parent taxonomy view

Then the search form can pass URL parameter two all child post views, and filter the result.

Please let me know if you need more assistance for above workaround.

#1720929

Thanks Luo. I will try this and circle back... lack of Ajax search is ok for us. Thanks a lot!

Just one question though, step 3... can I use Gutenberg? Because when I insert the view block, it doesn't show the option to only display search form. It keeps saying that view loop is mandatory if I try to remove it.

#1721287

In your case, I suggest setup those taxonomy view + child post view with classic editor, since blocks editor(Gutenberg) does not support taxonomy view yet.

#1722453

Hello. I tried this but I am not getting the expected results. I see ALL companies listed. If I change the filter such that "Cohorts" is set by parent taxonomy view, then I DON'T see the option to include Cohorts in filters separately.
If I set the Cohort filter through search filters aka Cohort is set by a URL parameter, then I see ALL the companies as seen in the screenshot below
hidden link

Please help!

#1722471

It works fine in my localhost, can you provide a test site with the same problem?
Also point out the problem page URL and view URLs, I need to test and debug it in a live website

#1722561

I have tried the credentials you provided above, but get this error message:
Unknown username.

Please check it, make sure it is valid admin account. thanks

#1722699

Sorry. Username is extsupport

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.