New answers tagged

1

Since posting the original question, I have also solved this like so: {% set aboutPages = craft.entries.section(['about']).all() %} {% set newsPage = craft.entries.section('newsIndex').one() %} {% set aboutNavigation = aboutPages|merge([newsPage]) %}


2

I've faced this a few times and solved it like this: {% set entries = craft.entries.section([ 'section1', 'section2', 'section3', ]).all() %} {# group the results by section handle #} {% set entriesGrouped = entries|group('section.handle') %} {# use this array to specify a manual order to be used when outputting the results #} {% set ...


Top 50 recent answers are included