[pmwiki-users] Again: Evaluating PageTextVariables in skin templates?
Harald C.
haraldc at gmx.net
Thu Jan 21 18:32:39 CST 2010
Hello,
I want to pass a class to the body tag of the skin temmplate that
editors of the page can set like this:
(:Class: someclass :)
Expected result in .tmpl:
<body class="someclass">
If I use <!--markup:{$:Class}--> in the .tmpl like this:
<body class="<!--markup:{$:Class}-->">
I get: <body class="<p>someclass</p>"
which of course doesn't work.
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")';
What am I doing wrong?
More information about the pmwiki-users
mailing list