[pmwiki-users] $DefaultPageTextFmt

Hans design at softflow.co.uk
Fri Jan 6 15:45:41 CST 2006


Friday, January 6, 2006, 9:16:36 PM, Patrick wrote:
>   $group = PageVar('$Group', $pagename);

I suppose this should be $group = PageVar($pagename, '$Group');

I tried the following for testing:

$group = PageVar($pagename, '$Group');
#echo  $group;
if($group=='Main') $HTMLStylesFmt[]= " #content { background:#ddf; } \n";

This has no effect.
If I enable the echo then i get Main/HomePage echoed, i.e.
$group is set to Main/HomePage , not Main.

(:if group Main:) ... markup worked though.

puzzling..

Best, 
~Hans                           






More information about the pmwiki-users mailing list