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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Menu Level 1 + Level 2

first-time theme

Started by Paul Langenfeld 4 years ago · 1 replies · 444 views
4 years ago

Dear Forum,

I have an issue creating a menu structure that (only) provides the links of the menu based on a dedicated selection of pages of different levels. Honestly, I cannot get this issue resolved. Well, I have already done a research on this topic within the board with (50+) results. Nothing helped.

Some information in advance:

I am new working with GRAV (coming von wordpress and joomla) and nevertheless I have successfully created a homepage based the antimatter theme. In addition I have extended the antimatter theme by a child-theme to easily include my design ideas. So far so good, everything is up and running the blog is growing. I am almost happy ;-)

Scheme of the structure:

JS
/root

/topic_1

   /_sub-topic_1_1

      /sub-sub-topic_1_1_1

         Page1.html, Page2.html,in total approx. 30 pages

       /sub-sub-topic_1_1_2

         Page1.html, Page2.html,in total approx. 60 pages

   /_sub-topic_1_2

      /sub-sub-topic_1_2_1

         Page1.html, Page2.html,in total approx. 40 pages

       /sub-sub-topic_1_2_2

         Page1.html, Page2.html,in total approx. 100 pages

/topic_2

=> similar here

/topic_3

=> similar here

Currently the menu is structured as follow:

[root] [topic_1] [topic_2] [topic_3]

What I would like to achieve:

I would like to have a menu structure as follow:

[root] [_sub-topic_1_1] [_sub-topic_1_2] [topic 2] [topic 3]

For me it seams like a "mixed" structure of several levels. The most important thing for me is, that if I would click on the menu item [sub-sub-topic 1_1] all 90 pages should be shown / listed (= pages of [sub-sub-topic 1_1_1] and also pages of [sub-sub-topic 1_1_2])

What I have already done:

1) Created manual links in the sidebar template …
Result: the pages below [_sub-topic_1_1] and [_sub-topic_1_2] are not shown and it is not helpful for me to "code" within a template to create a menu structure.

2) Tried to manage the menu based on the "Page Collections" - see: https://learn.getgrav.org/17/content/collections
Maybe I have done it wrong.
Result: the menu [_sub-topic_1_1] and [_sub-topic_1_2] and all pages below are not shown.

3) Tried to manage the menu based on the solution provided here: /forum/general/modular-page-in-menu-does-not-display-ints-children-t7883
Result: the menu [_sub-topic_1_1] and [_sub-topic_1_2] and all pages below are not shown.

My question:

Is there a way to create the menu structure by "clicking" some check marks to get this structure as I would like to have, without editing more than 100 pages (articles)?

It would be really great, If you can provide me some support. Thanks in advance.

Best Regards Paul

last edited 12/21/22 by pamtbaau

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 64 18 hours ago
Support · by Anna, 3 days ago
2 68 20 hours ago
Support · by Justin Young, 21 hours ago
1 35 21 hours ago
Support · by Duc , 1 week ago
2 71 6 days ago
Support · by Colin Hume, 1 week ago
2 63 6 days ago