How to fetch content of pages having specific template?

时间:2016-05-11 11:33:30

标签: bolt-cms

I want to fetch content of contenttype pages which are using a template page_with_sidebar.twig?

How do I do that?

e.g

{% setcontent a = 'pages' [some filter here to retrieve specific templated pages] %}

1 个答案:

答案 0 :(得分:2)

{% setcontent side_pages = 'pages' where { template: 'page_with_sidebar.twig' } %}