We created a blog a while ago using CMS elements. Everything was working fine until recently when we started adding more content. In the designer everything is being displayed correctly but there are cms elements missing. We use pagination (set to 5). On the first page only one element is shown and on page two five elements are shown. Four elements that should appear on the first page are missing.
What I tried:
Remove pagination – result: All post except the most recent are missing
Change pagination items – result: The first page only shows the most recent, the same four keep missing, more pages
Change sorting – result: the same four elements keep missing
Remove custom JS code that counts reading time – result: the same four elements keep missing
Check for identical content inside the cms
Can anyone point me in the right direction, to what could be a probable solution for this? I can’t explain it.
If you’re experiencing missing CMS elements, this is likely related to your Collection template page publish settings. Here’s how to check and fix this:
Open the Pages panel
Locate your Collection template page
Hover over the page and click the settings cog icon
Select “Publish settings”
Make sure the publish toggle is switched to “on”
This should make your CMS elements visible on the live site.
Hopefully this helps! If you still need assistance, please reply here so somebody from the community can help.
@RAZOmax, in each collection item, you have a ‘hidden-div’ block which is set to display:none. Do you want to keep it there?
If yes, for testing purposes, can you clone the collection list in the page and remove that hidden-div block completely and just have the ‘wiki_link-container’ block inside each item? Publish and see if you notice any difference on the live site.
Thank you for your hint. Removing the “hidden-div” does solve the display problem, however then I have to remove the reading time calculation. Inside the hidden divs exists the full blog post, which I use to calculate the reading time that is displayed on the category thumbnails. It worked fine until eight posts, but this logic started to break after the ninth post.
Do you have an idea how I could calculate the reading time without having the post exist twice on the page? I guess I could add a field in my CMS with reading time, but there must be a way to solve this with code.
Hmm, the simplest way would be to have a field in CMS for the reading time and accessing it (instead of loading the blog content in the list).
If you don’t want the manual work of filling the field, you could setup an automation via Make / Zapier which calculates the reading time via a formula (based on the length of the blog content) and pushes it to the CMS field accordingly. Hope this gives you some idea.