[Pmwiki-users] was: wiki-formatting of included wiki-pages => dynamic nested sidebar-entries (like trail2menu)

Knut Alboldt alboldt
Tue May 25 02:39:53 CDT 2004


Ok, got a another solution

I'm now using only one Sidebar: Main.Sidebar. Looks like

* Main.HomePage
* Admin.HomePage
=ifgroup Admin ** Edit:Admin.Sidebar
=ifgroup Admin ** [[http:/anywhere/admin Admin Anywhere]]
=ifgroup Admin ----
* Projects.HomePage
=ifgroup Projects ** Project.Project1
=ifgroup Projects ** Project.Project2
=ifgroup Projects (any text)

etc

using DoubleBrackets to conditional exchange that line by the specified 
text (if the group is matching) or nothing
so the =ifgroup-lines are only displayed if a page of the specified group 
is displayed. Taht enables dynamic SideBars with one (=group-specific) level

I will improve and clean up the things and put it on a cookbook-page.

Thanks for the tips !

Knut




More information about the pmwiki-users mailing list