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

Bug: Using "max#" will ignore "skip_file" for pages deeper than the max# setting #182

Open
jobhh opened this issue Nov 2, 2017 · 1 comment

Comments

@jobhh
Copy link

jobhh commented Nov 2, 2017

Bug: When setting max# pages that are listed in "skip_file" still shows up when they're deeper in the tree than max# is set to.

My skip_file input is the following:

/(^sidebar|^navbar|^pagetemplates|placeholder)/

Which should filter all placeholder pages anywhere. However, when I set max#1 all "placeholder" pages that are not in the root show up, max#2 hides 1 more depth of placeholder pages, etc. This indicates a bug in how the pages are loaded when max# is set.

The sidebar indexmenu code I tried initially:

{{indexmenu>..#1|js#incognito nomenu navbar tsort msort max#3#2 id#random}}

Which lead to this menu, where "placeholder" still showed up:
image

When I remove the "max#3#2", I got this:

{{indexmenu>..#1|js#incognito nomenu navbar tsort msort id#random}}

Which worked fine:
image

Setting something like max#8 also fixed the problem, since I have no pages deeper than 8 steps down the tree, but that defeats the purpose of max# of course.

@jobhh jobhh changed the title setting "max#" leads to "skip_file" settings being ignored Bug: Using "max#" will ignore "skip_file" for pages deeper than the max# setting Nov 2, 2017
@Klap-in
Copy link
Collaborator

Klap-in commented Jan 2, 2024

Can you please try the latest version of the indexmenu plugin? In that version I cannot reproduce it. There have been a significant amount of changes recently, it might be that it solved this as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants