Using automatic sidebar menus with multiple top-level sections in /content/en/
?
#817
-
TLDR: is there a way to automatically generate the sidebar menu for multiple topbar sections? I'm attempting to create two main sections (the top bar navigation) in a Doks site while using the automatic sidebar. Sorry, I don't have a public repo to show you yet. Here's the structure I've got:
Pages within the menu:
alan:
parent: "brian" My [[main]]
name = "Docs"
url = "/docs/prologue/introduction/"
weight = 10
[[main]]
name = "Alan"
url = "/alan/brian/"
weight = 10
[[docs]]
name = "Prologue"
weight = 10
identifier = "prologue"
url = "/docs/prologue/"
[[docs]]
name = "Help"
weight = 60
identifier = "help"
url = "/docs/help/"
[[alan]]
name = "Brian"
weight = 10
identifier = "brian"
url = "/alan/brian/" Unfortunately, if I go to Is there a way to automate the sidebar menu for individual directories in |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Not sure what's wrong with your setup. It should work out of the box. If you have repo available, I could be of better help. Can't replicate it. What I did on a fresh install:
And, it "just" works: https://doks-817.netlify.app/tutorials/lorem/ipsum/ |
Beta Was this translation helpful? Give feedback.
Not sure what's wrong with your setup. It should work out of the box. If you have repo available, I could be of better help.
Can't replicate it. What I did on a fresh install:
npm run create -- --kind docs tutorials
./config/_default/menus/menus.en.toml
:./config/_default/params.toml
set (needed for smaller screen sizes):And, it "just" works: https://doks-817.netlify.app/tutorials/lorem/ipsum/