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

Grouping the pages

Started by Muut Archive 10 years ago · 5 replies · 420 views
10 years ago

Is it possible to group two pages under parent page, so that parent page physically does not exist. Basically to write something in frontmatter like:

YAML
menu (somehow to define the main menu) :
   parent (the item which is virtually created but actually does not exis):
      child1: slug (page which is paced in user/pages/child1)
      child2: slug (page which is paced in user/pages/child2)

So basically these two child items are placed in the user/pages, but they are grouped in the menu like they were placed under the: user/pages/parent/child1 and user/pages/parent/child2.

What i am trying to achieve, is that the parent is not accessible and actually does not exist.

10 years ago

Just create a parent/ folder. It will create a virtual page. You simply need to just edit the page and set it so that it's not routable and not visible. it will not show up in the menu then.

10 years ago

Ok, thank you, but how i do this? Maybe anything at wiki?

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1368 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago