[pmwiki-users] Again: Evaluating PageTextVariables in skin templates?
Harald C.
haraldc at gmx.net
Sat Jan 23 09:45:18 CST 2010
Petko Yotov schrieb am / wrote on 23.01.2010 05:54:
> On Friday 22 January 2010 01:32:39, Harald C. wrote :
>> If I use<body class="{$:Class}"> I get exactly that, i.e. no
>> replacement of
>> class="{$:Class}" by class="someclass", even if I define the variable in
>> config.php like this:
>> $FmtPV['$Class'] = 'PageTextVar($pn, "Class")';
>
> Defining the {$Class} PageVariable is fine, so you would rather use it :
> <body class="{$Class}">
Thank you, Petko. Works fine.
Harald
More information about the pmwiki-users
mailing list