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?
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users