[pmwiki-users] skin design and the searchbox

Hans design at flutesong.net
Tue Mar 22 02:31:05 CST 2005


Tuesday, March 22, 2005, 6:57:43 AM, Dominique wrote:
>     $Conditions['var'] = 'true==$GLOBALS[\'$condparm\']';

It does not work, but got me experimenting. And this works:

   $Conditions['var'] = "\$GLOBALS[\$condparm]==1";

I propose that this is added to the core conditionals defined in
pmwiki.php.

Then new variables can be created for instance in a skin.php file
like
     global $Newvariable
     $Newvariable = 1;

and used in conditional markup test like

    (:if var Newvariable:)...text appearing when $Newvar is set true... (:if:)


Best, 
~Hans                           




More information about the pmwiki-users mailing list