[pmwiki-users] Again: Evaluating PageTextVariables in skin templates?

Petko Yotov 5ko at 5ko.fr
Fri Jan 22 22:54:04 CST 2010


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}">

Petko



More information about the pmwiki-users mailing list