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

hide_headpage is enabled, headpage still appears #145

Closed
mambojuice opened this issue Jan 13, 2016 · 3 comments
Closed

hide_headpage is enabled, headpage still appears #145

mambojuice opened this issue Jan 13, 2016 · 3 comments
Labels

Comments

@mambojuice
Copy link

I have hide_headpage enabled in my configuration settings, however all namespace :start pages are still appearing.

The below screenshot is showing the page listing under a VMware namespace I have created. The following code was used to generate the menu:
{{indexmenu>.:#1|pg nons}}

As you can see the namespace start page still appears in bold.

hide_headpage

@dennisverspuij
Copy link

From the code I see hide_headpage is effectively ignored when nons is specified. I am not sure whether this makes sense or not.

@Klap-in Klap-in added the bug label Jul 11, 2020
@Klap-in
Copy link
Collaborator

Klap-in commented Dec 22, 2023

The logic behind it is that if you use nons, the tree will not show namespace-nodes at all and only page nodes (including the pages at lower level, which you have prevented effectively with the #1. The headpage setting will default search for the different types of head pages (:start:, :inside: and :same:) and autolink the namespace name to it. The hide_headpage setting prevent the duplicates appear in the tree another time. If you have no namespace-nodes, the tool cannot display that headpage link anymore. Therefore, the headpages are not hidden, to prevent that they get lost.

Alternative is to use the skipfile option with an regexp that hide the start pages.

@Klap-in
Copy link
Collaborator

Klap-in commented Dec 24, 2023

Closing this, as skipfile option is available to achieve this.

@Klap-in Klap-in closed this as completed Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants