How to show teasers of blog posts on blog category page, aggregated by tag? #787
-
Dears, after a longer absence, I returned to my most beloved CMS - Yellow, starting anew with a bigger project, and I have run into a crucial problem. I plan to have several category pages on the site, consisting of teasers (content from blog-start pages) and links to the blog pages. I want these category pages to show only certain blog post teasers, so is it possible to show only blog posts relating to topic A, topic B etc- depending on a tag found in the blog posts? I have seen the "BlogWithFilter" page settings, but have no clue what this does. Apart from that, I am aware of the phenomenal Include extension, which helps me with the same task on Default (= non-blog) pages, but I do not want to manually link the blog posts on blog-start pages - it would be nice if this could be done automatically via tags. Any help greatly appreciated! Cheers, JetGum |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Welcome back! 🙂
I'm not sure if and how its possible to filter by more than one tag at the same time, but this should give you a starting point. Happy coding! Steffen |
Beta Was this translation helpful? Give feedback.
Welcome back! 🙂
Thanks to the API you can easily filter blog pages by tag in your
system/layouts/blog-start.html
. Here is an example layout which only displays blog pages filed under the news tag, have a closer look at the firstforeach
line.