I'm struggling with trying to figure out how to create a custom navigation list for my footer. I want to have a folder with pages, and have my footer navigation be populated with links to those pages.
This is what I feel like should work:
config.themes.steadystation.yaml
footnav:
items:
'@page.children': '/footnav'
order:
by: default
dir: desc
base.html.twig
{% for p in config.themes.steadystation.footnav %}
{{ p.title }}
Pages Folder Structure
01.Home
02.Promo
03.Etc
footnav
01.brands
02.title
03.info
04.etc
images
The above doesn't work.
I've tried lots of other things and cannot seem to get it to work. Is this even the right approach? Should I be defining a collection in the theme yaml? Do I even need a collection? My main nav is just using pages.children.visible in the TWIG. I don't know how to edit that to only look in one folder. I've tried pages.footnav.children.visible, but that doesn't seem to work.