[pmwiki-users] In list of links to groups, make current group different style
Patrick R. Michaud
pmichaud at pobox.com
Fri Nov 24 15:43:07 CST 2006
On Fri, Nov 24, 2006 at 02:54:48PM -0500, Sandy wrote:
> I know it was answered here a while ago. I know it can be done mostly
> with wiki text, but I can't narrow down the search enough to find it.
>
> On my site, the sidebar includes a list of groups, made by hand rather
> than automated. I would like the link to the group the current page is
> in to be highlighted.
In your sidebar, give each item in the list its own wikistyle
keyed by the name of the group:
* %GroupA% [[GroupA/]]
* %GroupB% [[GroupB/]]
* %GroupC% [[GroupC/]]
Then, in local/config.php, set the wikistyle corresponding to the current
group to whatever form of highlighting you want:
$group = PageVar($pagename, '$Group');
$WikiStyle[$group] = array('apply'=>'item', 'background-color'=>'yellow');
or
$group = PageVar($pagename, '$Group');
$WikiStyle[$group] = array('apply'=>'item', 'class'=>'highlight');
Pm
More information about the pmwiki-users
mailing list