[pmwiki-users] define sidewide style in skins.php
Patrick R. Michaud
pmichaud at pobox.com
Mon May 1 10:57:01 CDT 2006
On Sun, Apr 30, 2006 at 04:06:54PM +0200, noskule wrote:
> hi list
> I try to get the custom style
> %define=hl{$Group} class=selfgroup%
>
> into skins.php like this:
>
> $WikiStyle['hl{$Group}']['class'] = 'selfgroup';
>
> this dont work, does someone see whats wrong here?
{$...} substitutions aren't understood from PHP. Try:
$WikiStyle['hlSomeGroupe']['class'] = 'selfgroup';
Or, if you need it to be programmatic:
$pagename = ResolvePageName($pagename);
$group = PageVar($pagename, '$Group');
$WikiStyle["hl$group"]['class'] = 'selfgroup';
Pm
More information about the pmwiki-users
mailing list