Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

Getting the drop down menu to work - continued

Started by Muut Archive 12 years ago · 2 replies · 372 views
12 years ago

Hi, I managed to lose my first post!
Okay, what I am trying to find out is how to allocate pages to a drop down menu. I am using standard pages rather than listing or modular pages.
Thanks. Luke

12 years ago

Drop down menus mimic the folder structure so if you want to have a list of items say: apples, oranges, and lemons under a top level fruit menu item, you would just create those apples/ oranges/ and lemons/ folders under the fruit/ folder .

Of course each of thos folders would need a .md file to define the actual page detail.

Note, Grav by default uses the numeric order part of the folder to indicate that it should be visible in the menu. If you don't have that in the folder name ( ie no 01.apples/, only apples/), you will need to set visible: true In the page headers.

11 years ago

I hadn't numbered the subpages!
This works like a charm.
Many thanks indeed, Luke

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2613 9 years ago
Archive · by Muut Archive, 9 years ago
2 1722 9 years ago
Archive · by Muut Archive, 9 years ago
2 5019 9 years ago
Archive · by Muut Archive, 9 years ago
1 3848 9 years ago
Archive · by Muut Archive, 9 years ago
3 1824 9 years ago