I have been experiencing issues with the view editor for a while now. For some reason, it won't display the layout I build. Instead, it puts all the items in one row. I have experienced these issues with other pages before, but sometimes it randomly changes to the right format.
I will use one of the pages that I cannot get to work as an example, below.
I am trying to:
On this page: hidden link I am trying to get all the items in 2 rows, and the filters in 3 rows, see screenshot 1 (in the attachments)
Link to a page where the issue can be seen:
hidden link
I expected to see:
The layout on how I build it on the backend, meaning with 3 rows. I have got this to work on other pages, see: hidden link
Instead, I got:
You should be able to see the issue live at: hidden link But i also made a screenshot just to be sure (screenshot 2)
I have struggled for 2-3 hours and tried multiple things, such as:
- deleting the page and starting from scratch
- removing the filters
- removing the sorting
- removing parts of the view, such as
- the header title
- the image (currently empty for most items)
- the content (body) retrieved with a single field
When I tested these things, all of a sudden it would work again. But If I added some other filters, information in the view, or sorting it would break again. I was not able to pinpoint a specific issue, it seems to fail or work seemingly at random.
Could you please look into this issue?
Hello,
Toolset Layouts plugin is based on Bootstrap framework, so you need to load Bootstrap JS/CSS files in your website, for example:
Dashboard-> Toolset-> Settings-> General, in option "Bootstrap loading", choose: Toolset should load Bootstrap 4
And test again
Hi Luo,
I have changed this setting as you specified, but it does not make a difference. See: hidden link
Hi Luo,
I did some additional testing, and I think I found the issue, when I remove the text below the title the layout does not break anymore. This is a ''single field'' that displays the ''content (body)'' of each item. You can see this on the duplicate page: hidden link . Do you know what could cause this issue?
I have checked again the problem URL you mentioned above:
hidden link
You are using Blocks editor to design the post view, so you don't need to activate Bootstrap.
And I suggest you try to use Toolset Grid Block to design the outputs:
https://toolset.com/course-lesson/responsive-columns-and-grids/
If you need more assistance for it, please provide your website credentials in below private message box, I can setup a demo for you
I have done below modifications in your website:
Find and select that single field block, change the option "Post Field" from Post content (body) to: Post excerpt
Please test again, check if it is fixed.
Hi Luo,
Now the layout is loaded correctly, but the text is now stripped of all formatting and the links are removed. Therefore, it does not look right and does not work as expected. So this is not an acceptable solution for me.
Why does it break the layout if I use ''content (body)''? It worked before, but I believe it broke in some update (either of toolset or the theme Astra).
Thank you for your help, but I hope we can find a more suitable solution.
There should be some broken HTML tags in those "Startpunten" post body, and conduce the problem, and I have checked again in your website, it seems that you have already fixed the problem:
hidden link
please let me know if you still need assistance for it.
Hi Luo,
The issue is not necessarily resolved, but I did find a workaround.
The problem only occurs on posts/pages that are not using a content template. The ''provincie'' post type ''Noord-Holland'' (the link you shared) is also using a content template.
So to work around the problem I created a content template that only activates on the post slug: ''alle-routes''. If I insert the view with the formatting this way, it all works out fine. But when I try to add it with the page editor it fails again.
You can see that it keeps failing on a secondary page I made: hidden link
To me, this issue feels like a bug. Maybe it's an issue between Toolset and Astra-Pro? (the theme I am using) Could you let me know if this is something that will change in the future? Because I don't think it's logical to make a content template for every page.
I assume we are talking about the content template "Template for Pagina's"
hidden link
I have done below modifications in your website:
1) Edit above content template, in section "Usage" remove those conditions
2) Edit the problem page "Alle Routes 2", replace the view block with a content template, and choose above content template
Test it in frontend, it works fine
hidden link
please check if it is fixed, thanks
The issue is resolved. The fix you provided works only for one page. Which would mean that I would have to make another content template for every page. That would not be ideal.
By using a content template for all pages with a single field that copies the content (body) the issue is fixed for all pages.