Not logged in. · Lost password · Register
Forum: General Help and Support Syntax and Usage RSS
How to create expandable list? Similar to Index page?
Avatar
jpenguin #1
Member since Dec 2009 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: How to create expandable list? Similar to Index page?
Hi. I'm totally new to Dokuwiki. Trying to create a custom sidebar menu for my wiki.

I really like how the index is shown in tree hierarchies and are expandable/collapsible. Is there a way to create a hierarchy just like that with my own list?

I really want to manually create an expandable/collapsible sidebar. I want to choose only a few important links to be put there instead of showing every single files, the way indexmenu does.
This post was edited 3 times, last on 2009-12-31, 01:22 by jpenguin.
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3471 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
The navi plugin might be what you're looking for (or at least similar)
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
Tin #3
Member since Feb 2019 · 8 posts
Group memberships: Members
Show profile · Link to this post
Thanks for the pointer to the navi plugin. In its documentation, it's written that in case of usage for sidebar navigation with namespaces one should:  add "?ns" to the navi plugin syntax. Could you please let me know, with an example, where exactly should I add the ?ns.
Avatar
Michaelsy #4
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Try:
{{navi>navigationmenu ?ns}}
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
Tin #5
Member since Feb 2019 · 8 posts
Group memberships: Members
Show profile · Link to this post
Thank you @Michaelsy BTW, have you used that plugin also for sidebar navigation? In my case, I've different namespace levels:
   * namespace1:subnamespace1:page1
   * namespace1:subnamespace1:page2
   * namespace1:subnamespace2:page1
   * namespace2:subnamespace1:page1

It's only when I click on the first page (namespace1:subnamespace1:page1), that the pages are expanded, even the ones that belong to another space. Ideally, I would like to generate something like:
   * namespace1
      |-> namespace1:subnamespace1:page1
      |-> namespace1:subnamespace1:page2
      |-> namespace1:subnamespace2:page1
   * namespace2
      |-> namespace2:subnamespace1:page1

where the arrows represent the links that should be visualised only after clicking in their parent pages/namespaces. Right now, it's working sth. like that:

   * namespace1
      |-> namespace1:subnamespace1:page1
      |-> namespace1:subnamespace1:page2
      |-> namespace1:subnamespace2:page1
      |-> namespace2:subnamespace1:page1
This post was edited on 2019-02-20, 13:27 by Tin.
Avatar
Michaelsy #6
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
Sorry, I think I have never used the Navi plugin.
By Patreon.com a few eurons can be fed into the code phasers of
the DokuWiki engine. Besides, Andi's posts are worth reading.
Avatar
turnermm (Moderator) #7
Member since Oct 2009 · 4688 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post #5
You should be able to get this with the indexmenu plugin.  See, for instance: https://mturner.org/xen_server/
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
Tin #8
Member since Feb 2019 · 8 posts
Group memberships: Members
Show profile · Link to this post
Thanks @turnermm for the link to the index menu plugin. I didn't completely understand how to correctly do the sorting. In your https://mturner.org/xen_server/ page, how did you manage to sort the directories/namespaces? so that at the first level, you've:

+docs
+Xen Servers
+Operating Systems
+Dokuwiki
+Xen/KVM Documents

I would like to set the sorting by hand, as neither "the creation dates" nor an "alphabetical sort" would be helpful in my case.
I was trying as in the documentation to use "{{indexmenu_n>Number}}" for the wiki pages, but what about the directories? My sidebar just looks like that: {{indexmenu>#1|navbar tsort msort}}
Avatar
turnermm (Moderator) #9
Member since Oct 2009 · 4688 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I'm not familiar with all the intricacies of indexmenu. I l learned what I needed when I needed it.  In the case of xen_server, that wiki sets the useheadings option to always, so instead of getting page ids in the index, you get the first heading of each page.  The division into namespaces-by-title is obtained by creating a start page in each namespace with the title as the first header of that start page.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2019-08-21, 07:46:00 (UTC +02:00)