Hi all,
I am trying to build a vertical menu which would complement the horizontal menu with drop-down in the Deliver theme (more about that in /forum/themes-styling/menu-in-deliver-theme-t6666?u=sue).
Fot this purpose, I am using Page Collections, i. e. modified codes copied from https://learn.getgrav.org/16/content/collections
Out of the table Summary of collection options, those based on '@root', '@self' and '@taxonomy' work fine (i. e. generate the list of topics). However, I need to take advantage of the '@page' functionality and that is not working.
This is the frontmatter of the relevant page:
content:
items:
'@page': '/software'
order:
by: name
dir: asc
pagination: false
and this is the code for generating the menu:
<div class="sidebar-content">
<ul>
{% for post in page.collection %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endfor %}
</ul>
What am I doing wrong?
THX!