garrettlynch I'm using the Indexmenu plugin (https://www.dokuwiki.org/plugin:indexmenu) and I need to somehow highlight a namespace/folder. Is there a way to tell a namespace to be listed at the top of the indexmenu e.g. there are custom sorting numbers but can these be applied to a namespace, is so how? Alternatively is there any other solution I can use to highlight the namespace (e.g. CSS to target only namespaces with a certain ID/name)? Failing all of this - is there an alternative menu system that might do what I'm trying to achieve? Many thanks.
X3PPY Hi. This should work with namespaces. :test:start {{indexmenu_n>1}} :start {{indexmenu>|msort}} But I noticed that with a large number of pages, the menu may take longer to load.
garrettlynch Hi, I don't understand. This is what I have at the moment {{indexmenu>.#1 .:priority}} to open the namespace priority. Am I supposed to add msort like so {{indexmenu>.#1 .:priority|msort}}? Where does {{indexmenu_n>1}} go?
X3PPY Hi! Create namespaces\pages: :test:start {{indexmenu>:test|tsort nsort msort}} test:test1:start ===== TEST1 ===== {{indexmenu_n>3}} test:test2:start ===== TEST2 ===== {{indexmenu_n>2}} test:test3:start ===== TEST3 ===== {{indexmenu_n>1}}
garrettlynch These examples do nothing as far as I can tell. I am rephrasing my question for clarity. I am using indexmenu and I want to move a namespace to the top of the menu. My menu looks something like this: namespace1 namespace2 namespace3 priority page1 page2 How do I move the namespace/folder "priority" to the top of the menu - above namespace1?
michaelsy garrettlynch Namespaces are sorted by their names by the Indexmenu plugin. According to your example, there could be the pages with the following IDs: 10-priority:start 10-priority:page1 10-priority:page2 20-namespace1:start 30-namespace2:pagex 40-namespace3:pagey This is the only way I have found so far. I always make the numbering multi-digit so it's easier to insert namespaces. Changes to the order can be made using the Move plugin. - Michael Sy.
garrettlynch Thanks michaelsy. Yes I know how to do that but it's not a good solution for me. I want to control the names of namespaces and pages - for me letting dokuwiki dictate how namespaces and pages are named is not very user friendly. I'm not stuck on indexmenu so if anyone knows an alternative way I'd be interested in hearing about it.
michaelsy garrettlynch I want to control the names of namespaces You can use the Pagetitle plugin to assign the name to a namespace that will be visible to the user. This title/name must be assigned to the start page of the namespace. (You also need to enable the Useheading option in the settings.) - Michael Sy.
garrettlynch michaelsy Ok I understand this and I have pagetitle working (thank you) BUT I hadn't been using start pages in my namespaces (only my top level "pages" had one) and indexmenu's "Hide headpages" was enabled. I now have 00-priority:start (which renames itself to "priority" as I wanted) but that start page is visible in the menu - very odd because the top level start page (in "pages") isn't. Any idea what might be going wrong? edit: and the start pages seem to be breaking access to the namespace pages in the menu (I can only click into the start page).
michaelsy X3PPY Have you implemented my example? Have you implemented your approach yourself once? - Michael Sy.
garrettlynch Ok I got bored with going between messing with fiddly markup and the plugin settings so I just modified the plugin. For anyone looking to do this change line 815 of /syntax/indexmenu.php ($more = '';) and namespaces with headpages will open as required. Why this isn't the default setting I'm unclear but agree with the comments here (https://www.dokuwiki.org/plugin:indexmenu:discussion#nojshow_make_all_namespaces_always_switching_open_close_by_clicking) that it would be very easy to implement as a 'nolink' tag.