[pmwiki-users] selfgroup class & $GroupHeaderFmt
christian.ridderstrom at gmail.com
christian.ridderstrom at gmail.com
Tue Mar 7 16:19:44 CST 2006
On Mon, 6 Mar 2006, Patrick R. Michaud wrote:
> On Mon, Mar 06, 2006 at 07:22:20PM +0100, noskule wrote:
> > hi list
> > I would like to use a page like left sidebar or HorizontalNav (in
> > NetstreamsSkin) as kind of sitedirectory that shows the existing
> > groups(with links points to there homepages) an highlights the current
> > group. So with selflink I can highlight the current page. Now, is there
> > a way tho hilight Links that points to homepages if there groupname is
> > equal with the name of the current group? It could probably be done
> > with conditional markup, but the problem there is to overwrite the
> > linkclass via css, cause every link is allready specified. Most nice it
> > would be if it could assigned to *.PageName via skin.php
>
> Awww, it's easy. Try formatting your sidebar this way:
>
> %define=hl-{$Group} bgcolor=yellow%
>
> * %hl-Main% [[Main.WikiSandbox]]
> * %hl-Main% [[Main.HomePage]]
Thanks for the tip!
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list