samuelet / indexmenu

A dokuwiki plugin to show a customizable and sortable index for a namespace.
http://dokuwiki.org/plugin:indexmenu
GNU General Public License v2.0
44 stars 43 forks source link

Problem with namespaces #266

Closed lmalevich closed 1 year ago

lmalevich commented 1 year ago

My wiki is in Russian. With the Translation plugin I translate it into English. Accordingly, the namespace in Russian starts with "start:...", and in English with "en:start:...". So, in the Russian sidebar both of these namespaces are displayed, and in the English sidebar - only the namespace "en:start:...", as it should be. I want to ask how do I turn off the display of the EN namespace in the Russian sidebar? What I tried:

  1. Add "nons" to the code options for the sidebar, but then only the "start" page in Russian remains visible in the sidebar, and I need to see the whole Russian namespace.
  2. Turn this setting on, but then the EN namespace doesn't even show up in the English sidebar: image

The code I use for the sidebar: {{indexmenu>.#3| notoc msort nsort js#doku2}}

And one more little question, in both of my namespaces in the sidebar is duplicated page "start": image

How can I fix this and see only one entry? Or maybe there's a way to not display the "start" page in the sidebar at all? I have the following wiki setting enabled and it works, but not for the first "start" page: image

I'd appreciate your help!

lmalevich commented 1 year ago

The problem was solved by adding the page name to the code for the sidebar. {{indexmenu>PAGE TITLE#1|js........}}

The menu now looks like this: image