Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
TOC in sidebar
Avatar
og #1
Member since May 2006 · 435 posts · Location: Bayern
Group memberships: Members
Show profile · Link to this post
Subject: TOC in sidebar
I'm using bootstrap3 template with cerulean theme and want to have TOC shown in a sidebar instead as part of the page. I looked around for plugins and found that "Inline TOC plugin" should do the job.

Unfortunately it does not seem to work. The TOC (using syntax "{{INLINETOC}}") is only shown once, after saving page changes. Each successive loads will show up the TOC inside the page again.
Oli...
Avatar
turnermm (Moderator) #2
Member since Oct 2009 · 4673 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
I think what you may be able to use is tocselect: https://www.dokuwiki.org/plugin:tocselect
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
og #3
Member since May 2006 · 435 posts · Location: Bayern
Group memberships: Members
Show profile · Link to this post
I've already seen your plugin, and it is close to what i need. Only thing is, that i do not want any functionality here, no buttons or editfield, just plain clickable list.
Maybe i can fork your code an rip off all i do not need...? Or are you willing to make this configureable?
Oli...
Avatar
turnermm (Moderator) #4
Member since Oct 2009 · 4673 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
Afraid not. Too busy. And the only "buttons" is an up arrow for navigation.  And the only editable field, a text box that auto fills.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
og #5
Member since May 2006 · 435 posts · Location: Bayern
Group memberships: Members
Show profile · Link to this post
Oh, please don't get me wrong, i meant that i don't want to have extra GUI elements on this, not that it is too much, or bad, or such...
Well, i'm going to fork and look inside to learn from your code. Don't think what i want is too hard to achieve. We will see :-)
Thank you, Turner!
Oli...
Avatar
turnermm (Moderator) #6
Member since Oct 2009 · 4673 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
You can see it in action using this url: http://mturner.org/fckgLite/doku.php?switch=doku
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
drhuh #7
Member for 3 months · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: no toc in sidebar
I have installed tocselect plugin to my dokuwiki (2018-04-22b "Greebo"). Regardless what I do, I never see the TOC in the sidebar. If I add ~~SELECTTOC~~ to a page, then I see the toc, but only inside the page. What is going wrong here?

Hm, sorry, I was not aware that I have to "enable" the sidebar. Now I have it, but the contents remains empty and for all pages I only see something like "No TOC for :it".
This post was edited on 2019-04-24, 10:31 by drhuh.
Avatar
Michaelsy #8
Member since Jun 2015 · 969 posts · Location: Düsseldorf, Germany
Group memberships: Members
Show profile · Link to this post
You have to fill the page "sidebar" with static links and/or navigation plugin calls. The sidebar page is to edit and to fill like every other wiki page. With one exception: You should add the ~~NOCACHE~~ option. For the highlighting of the current page to work correctly.

More details: https://www.dokuwiki.org/faq:sidebar

HTH - Michael Sy.
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) #9
Member since Oct 2009 · 4673 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
In reply to post #7
This is a specialized toc plugin.  It combines listings of wiki pages with listings of the table of contents for the currently selected page.  If you place your markup in a page, it replaces the dokuwiki TOC, and so what you saw is correct.  If you place it in a sidebar, then you should use this form:
  ~~SELECTTOC>curID~~
This automatically selects the  toc for the current page. 

If you put the ~~SELECTTOC>curID~~ markup in a sidebar then you should set the notoc config option to true, so that the dokuwiki table of contents in your page is hidden.

Take a closer look at the documentation to see the plugin features.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
Avatar
turnermm (Moderator) #10
Member since Oct 2009 · 4673 posts · Location: Canada
Group memberships: Global Moderators, Members, Super Mods
Show profile · Link to this post
If however you want just a listing of pages, then you should look at the indexmenu plugin, which is for use in a sidebar.

See https://www.mturner.org/xserver/ for an example usage.
Myron Turner
github: https://github.com/turnermm
plugins, templates: http://www.mturner.org/devel
This post was edited on 2019-04-24, 16:10 by turnermm.
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-07-17, 12:50:27 (UTC +02:00)