Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Ordering of items in dropdown menu?

Started by Zuzana Fenclová 4 years ago · 1 replies · 819 views
4 years ago

Hello everyone,

I am using Deliver theme in my GRAV website. I was asked to arrange the items in the dropdown navigations alphabetically.

I am aware of the possibility of different ways of ordering the pages (collections), which I use in sidebar.html.twig. So far I have not found a way of influencing the order of items in the dropdowns, though. The file navigation.html.twig does not seem to be the place to put some ordering logic in.

Will you point me in the right direction, please?

4 years ago

@sue:
The file navigation.html.twig does not seem to be the place to put some ordering logic in.

Why have you decided this? This is exactly where I would do it.

Suggested topics

Topic Participants Replies Views Activity
Themes & Styling · by MarkP, 2 weeks ago
3 193 2 weeks ago
Themes & Styling · by TomW, 2 weeks ago
0 111 2 weeks ago
Themes & Styling · by themetman, 3 weeks ago
1 206 3 weeks ago
Themes & Styling · by AH, 1 month ago
1 324 3 weeks ago
Themes & Styling · by Bruno, 4 years ago
6 1523 3 weeks ago