Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid expanding submenus #563

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kmorel
Copy link

@kmorel kmorel commented Jun 15, 2024

The sidebar menu shows the entire site tree for the selected top level submenu. For sites with a lot of subsites and pages, this makes it much harder to navigate.

This adds a hideExtendedTree site parameters. When set to true, the side menu shows only the most relevant pages: the current page, its ancestors, and their children. The default behavior remains the same, so this modification will not change the behavior of existing pages.

Before

This site has lots of subsites and pages that all show at once.

Screen Shot 2024-06-15 at 7 42 21 PM

After

Once hideExtendedTree = true is added to the site parameters in the configuration, the menu is simplified to this.

Screen Shot 2024-06-15 at 7 42 37 PM

There are at least two active issues asking for this behavior.

Fixes: #511, #88

The sidebar menu shows the entire site tree for the selected
top level submenu. For sites with a lot of subsites and pages,
this makes it much harder to navigate.

This adds a `hideExtendedTree` site parameters. When set to
true, the side menu shows only the most relevant pages: the
current page, its ancestors, and their children.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Avoid expand sub-menu
1 participant