[pmwiki-users] how to get pmwiki to use markups in a string

Hans design5 at softflow.co.uk
Mon Aug 31 10:39:08 CDT 2009


> $SkinCopyright = "................";

> $FmtPV['$SkinCopyright'] = '$GLOBALS["SkinCopyright"]';

Variable $SkinCopyright is declard in config.php and so automatically
becomes  a Global var, part of the $GLOBALS array.
But note that the leading $ sign is not used to refer to the
array item in $GLOBALS.
On the other hand a $ sign is added for the $FmtPV array item:
so we can use in a page markup {$SkinCopyright}, which PmWiki
recognises as a page variable and renders correctly.


More information about the pmwiki-users mailing list