[pmwiki-users] Question about expanding menu (w/o additional scripts) :)
Martin Fick
mogulguy at yahoo.com
Sun Sep 16 20:56:29 CDT 2007
--- Vladimir Grigor <vgrigor at gmail.com> wrote:
> Vladimir Grigor wrote:
>
> Solution should be quite simple to this problem, but
> I can't make this system do what I want.. :)
>
> I came to this solution(it doesn't work yet ):
> 1) script in Site.SideBar calls
> (:pagelist fmt=#sidebar name=Research.* :)
> so only pages from 'Research' group are
selected;
> 2) script in Site.LocalTemplates
> [[#sidebar]]
> ...
> (:if equal {$ReqPDir} {=$Group} )
> * [[{=$FullName}|+]]
> (:if:)
> ...
> [[#sidebar]]
> It checks if group of current page is the same as
> group of $RequestedPage. If it is, then second level
of links
> of menu is shown.
For that, you probably just want:
(:if equal {$Group} {=$Group} )
-Martin
____________________________________________________________________________________
Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out.
http://answers.yahoo.com/dir/?link=list&sid=396545433
More information about the pmwiki-users
mailing list