Join the Webstudio community

Updated last month

Add CMS collection items on the single Post page using the same source

At a glance

The community member is trying to add a selection of CMS items below an article on the single post template, but is facing a conflict when fetching the article and the CMS items from the same collection. They are using the Zenblog integration, and when adding components to the collection, they don't appear in the navigator. The community members discuss the issue, with one suggesting there is a problem with the "resource" variable. Eventually, the community member finds a solution by defining another "Resource" variable on the collection, which resolved the issue.

Useful resources
I want to add a selection of CMS items below an article on the single post template. Both the article and the items below are from the same CMS collection. It seems there a conflict fetching the article to populate on the page, and fetching CMS items of that same CMS collection for the selection below.

I am using the Zenblog integration.

When I add components to the collection (Heading, Image...) they simply don't appear in the navigator.

https://p-6bf4d3fd-1471-4cd6-b881-fd0a13fa583c.apps.webstudio.is/?authToken=2a7e6531-c635-4f86-8f14-c2175a98c48c&mode=preview
Go to Page > 'Post' > 'More Blog Section' > 'More Blog Wrap'
B
A
9 comments
I don't see "More Block Section" on "Posts" page
Ah, found on Post
No conflicts, something wrong with your resource
Yes I meant 'Post', my bad
What do you mean by 'resource'?
The Zenblog data value indeed returns an error, but the article renders properly on the live site.

https://facade-toiture.wstd.io/posts > click on any article, all is good for the single article but not the 'More articles' selection below it
Resource variable
Attachment
image.png
I guess there is a difference
Plain Text
- https://zenblog.com/api/public/blogs/65cad082-7ae2-4091-97ae-12ca05b29b37/posts?limit=10
+ https://zenblog.com/api/public/blogs/65cad082-7ae2-4091-97ae-12ca05b29b37/posts/lorem-ipsum
You are right, I defined another Resource variable on the collection and it worked. Thanks!
Add a reply
Sign up and join the conversation on Discord