Hello, I have a COS/hubl related question - is there a way (outside of using a blog or managing page content in HubDB) to deal with landing or website pages in “collections” and be able to loop through them?
There are situations where I’d rather not use a blog, but want to show information from other groups of related pages. I’ve built multiple sites/blogs on the COS now, been through the docs pretty thoroughly, and can’t find a way to do this that doesn’t involve hitting the Page Publishing API and rendering content on the front-end.
It seems like a function like get_page_by_id that returns the {{content}} available from that page would be incredibly useful. It would allow something like this -
{% set related_pages = [482645, 482645, 482645] %}
{% for page in related_pages %}
{% set content = get_page_by_id(page) %}
<!-- show content -->
{% endfor %}
The group of page id’s could be managed in hubdb or with a hubl module. Seems like it would make the COS much more flexible for developers.
I would love to hear how others are handling similar situations … do you use blogs for any type of collection? Or did I overlook something in the docs? Any help or input is much appreciated, thanks!