DaveG wrote:
> 
> To use a PHP variable within a skin template you need to store it as a 
> FmtPV variable, which needs to be a executable PHP statement (thus the 
> odd quotes). Refer to PmWiki/PageVariables:
> $FmtPV['$MyVar'] = '"abc"';
> 
> And then to use it in the .tmpl file:
>    My quote of the day is {$MyVar}
> 


Could you also do:

in config.php
$FmtPV['$color1'] = '"#00cc00"';


then in the .tmpl file:
<style>
h1 {color:$color1;}
A {color:$color1;}

then when the client changes his mind, I only have to change it once.

Happy!

Sandy


_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to