Not logged in. · Lost password · Register
Forum: General Help and Support Installation and Configuration RSS
help needed: sidebar menu/submenu on monobook template
Avatar
drj #1
Member since Feb 2010 · 5 posts
Group memberships: Members
Show profile · Link to this post
Subject: help needed: sidebar menu/submenu on monobook template
I am new to Doku and have been on-n-off reading/searching for a week and got nowhere.

here is what I have:
1. a totally closed site hosted on linux at home, using the latest dokuwiki, via https
2. monobook template

here is my problems:
want to have something like following, with menu and submenu with more descriptive names (not just short, lower-case namespace names), as in wiki:navigation page, but i don't know how to make menu (tried indexmenu, indexment2, navi, all used namespace for menu items, not pretty)

**Linux**
  * [[wiki:linux:lamp|LAMP Applications]]
  * [[wiki:linux:ldap|Open LDAP]]
  * [[wiki:linux:mail|Postfix/Webmail]]
  * [[wiki:linux:other|Other Applications]]
  * [[wiki:linux:tips]]

**Windows**
   * [[wiki:windows:tips]]

**Work Related**
  * [[wiki:work:GLE|Great Lakes Electric]]
  * [[wiki:work:unix]]
  * [[wiki:work:db|Database]]
     * [[wiki:work:db:oracle|Oracle]
     * [[wiki:work:db:db2|DB2UDB]]
     * [[wiki:work:db:mysql|MySQL]]
  * [[wiki:work:shell|Shell Scripts]]


my 2nd question is related to <code> </code> block, it would be nice to have different color backgrounds as in pmWiki. I am using <box></box> as a workaround.

thanks for your help
Avatar
andi (Administrator) #2
User title: splitbrain
Member since May 2006 · 3432 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by drj on 2010-02-09, 03:52:
navi, all used namespace for menu items, not pretty

The navi plugin does not use namespaces for the menu. In fact it is doing exactly what you describe.
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
drj #3
Member since Feb 2010 · 5 posts
Group memberships: Members
Show profile · Link to this post
somehow my sidebar list does not collapse. all sub-menu are visible at the time. what did I do wrong? Thanks


{{navi>sidebar}}
  * [[wiki:linux|Linux]]
    * [[wiki:linux:lamp|LAMP Applications]]
    * [[wiki:linux:ldap|Open LDAP]]
    * [[wiki:linux:mail|Postfix/Webmail]]
    * [[wiki:linux:other|Other Applications]]
    * [[wiki:linux:tips]]
  * [[wiki:windows|Windows]]
    * [[wiki:windows:tips]]
  * [[wiki:work|Work Related]]
    * [[wiki:work:GLE|Great Lakes Electric]]
    * [[wiki:work:unix]]
    * [[wiki:work:db|Database]]
      * [[wiki:work:db:oracle|Oracle]
      * [[wiki:work:db:db2|DB2UDB]]
      * [[wiki:work:db:mysql|MySQL]]
    * [[wiki:work:shell|Shell Scripts]]
Avatar
andi (Administrator) #4
User title: splitbrain
Member since May 2006 · 3432 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
You are aware that the list should be in a different page that is referenced by the navi plugin syntax?
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
drj #5
Member since Feb 2010 · 5 posts
Group memberships: Members
Show profile · Link to this post
andi, thanks for your help

my sidebar is a separate page, named sidebar.txt, under the wiki/ directory, the namespace/pages it referenced are also under wiki/ directory. what did i do wrong?
Avatar
andi (Administrator) #6
User title: splitbrain
Member since May 2006 · 3432 posts · Location: Berlin Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Your sidebar is in the page sidebar and should contain something like this:

{{navi>mynavigation}}

Then you create another page called mynavigation which should contain your navigation:

  * [[wiki:linux|Linux]]
    * [[wiki:linux:lamp|LAMP Applications]]
    * [[wiki:linux:ldap|Open LDAP]]
    * [[wiki:linux:mail|Postfix/Webmail]]
    * [[wiki:linux:other|Other Applications]]
    * [[wiki:linux:tips]]
  * [[wiki:windows|Windows]]
    * [[wiki:windows:tips]]
  * [[wiki:work|Work Related]]
    * [[wiki:work:GLE|Great Lakes Electric]]
    * [[wiki:work:unix]]
    * [[wiki:work:db|Database]]
      * [[wiki:work:db:oracle|Oracle]
      * [[wiki:work:db:db2|DB2UDB]]
      * [[wiki:work:db:mysql|MySQL]]
    * [[wiki:work:shell|Shell Scripts]]
Read this if you don't get any useful answers.
Lies dies wenn du keine hilfreichen Antworten bekommst.
Avatar
drj #7
Member since Feb 2010 · 5 posts
Group memberships: Members
Show profile · Link to this post
sorry, still not work

I have sidebar page containing only one line

{{navi>navigation}}

and a separate page called navigation

* [[wiki:linux|Linux]]
  * [[wiki:linux:lamp|LAMP Applications]]
  * [[wiki:linux:ldap|Open LDAP]]
  * [[wiki:linux:mail|Postfix/Webmail]]
  * [[wiki:linux:other|Other Applications]]
  * [[wiki:linux:tips]]
* [[wiki:windows|Windows]]
  * [[wiki:windows:tips]]
* [[wiki:work|Work Related]]
  * [[wiki:work:GLE|Great Lakes Electric]]
  * [[wiki:work:unix]]
  * [[wiki:work:db|Database]]
    * [[wiki:work:db:oracle|Oracle]
    * [[wiki:work:db:db2|DB2UDB]]
    * [[wiki:work:db:mysql|MySQL]]
  * [[wiki:work:shell|Shell Scripts]]


and sidebar shows correctly, but still not collaps
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-06-16, 07:13:42 (UTC +02:00)