[pmwiki-users] Using variable in skin template

DaveG pmwiki at solidgone.com
Fri Oct 23 16:18:23 CDT 2009



Sandy wrote:
> in config.php
> $FmtPV['$color1'] = '"#00cc00"';
> 
> 
> then in the .tmpl file:
> <style>
> h1 {color:$color1;}
> A {color:$color1;}
Rather than this use:

   $color1 = '#00cc00';
   $HTMLStylesFmt['my_skin'] = "h1 {color:$color1;} ";

That way, there's no need to mess with .tmpl.

  ~ ~ Dave



More information about the pmwiki-users mailing list