[pmwiki-users] Expandable and collapsable tree in sidebar?

Shi Sherebrin pmwiki at share-a-brain.com
Mon Feb 12 11:35:08 CST 2007


Here's some sample code that I use for a two-level system.  You can 
probably get a third level by doing conditional tests on page names.

Site.SideBar:

%define=current color=red font-weight=bold%
! [[Home -> Main/HomePage]]
(:if authid:)
* [[Edit -> action:edit]]
* [[Logout -> action:logout]]
(:if !authid:)
* [[Login -> action:login]]
(:ifend:)
* [[Search -> action:search]]
* [[Other Commands -> Main/Commands]]
* [[Sandbox -> Main/WikiSandbox]]

!Groups
(:include Adam.SubMenu:)
(:include Chris.SubMenu:)
(:include Shi.SubMenu:)

%right% [-[[edit SideBar -> Site.SideBar?action=edit]]-]

-=0=-

Shi.SubMenu:

(:if ! group Shi:)
* [[Shi]]
(:if group Shi:)
* %current% [[Shi]]
** [[Dev Tools -> MyDevTools]]
** [[Windows Tips -> MyWindowsTips]]
** [[Unix Tips -> MyUnixTips]]
** [[CVS Tips -> MyCVSTips]]
** [[Work in Progress]]
(:if:)

-=0=-

Shi.



More information about the pmwiki-users mailing list