Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Getting the drop down menu to work - continued

Started by Muut Archive 11 years ago · 2 replies · 260 views
11 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

11 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 1326 9 years ago
Archive · by Muut Archive, 9 years ago
2 920 9 years ago
Archive · by Muut Archive, 9 years ago
2 4049 9 years ago
Archive · by Muut Archive, 9 years ago
1 2927 9 years ago
Archive · by Muut Archive, 9 years ago
3 1106 9 years ago