indexmenu icon indicating copy to clipboard operation
indexmenu copied to clipboard

hide_headpage is enabled, headpage still appears

Open mambojuice opened this issue 9 years ago • 1 comments

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

mambojuice avatar Jan 13 '16 22:01 mambojuice

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

dennisverspuij avatar Aug 24 '18 11:08 dennisverspuij

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 avatar Dec 22 '23 23:12 Klap-in

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

Klap-in avatar Dec 24 '23 13:12 Klap-in