[pmwiki-users] $DefaultPageTextFmt
Patrick R. Michaud
pmichaud at pobox.com
Fri Jan 6 16:03:11 CST 2006
On Fri, Jan 06, 2006 at 09:45:41PM +0000, Hans wrote:
> Friday, January 6, 2006, 9:16:36 PM, Patrick wrote:
> > $group = PageVar('$Group', $pagename);
>
> I suppose this should be $group = PageVar($pagename, '$Group');
Right.
> I tried the following for testing:
>
> $group = PageVar($pagename, '$Group');
> #echo $group;
> if($group=='Main') $HTMLStylesFmt[]= " #content { background:#ddf; } \n";
>
> This has no effect.
It may have no effect if the url doesn't have a pagename (i.e.,
$pagename is empty), but I think it might work if you explicitly
put Main/HomePage in the url. I.e.:
.../pmwiki.php/Main/HomePage # should work
.../pmwiki.php # doesn't work, as $pagename is ""
That's why I mentioned that there's a problem when $pagename is
empty, but it ought to work mostly everywhere else. And the
whole thing will likely be redesigned so that $pagename is
always "set" by the time the config.php scripts are
executed (although the admin still has the ability to
manipulate $pagename if needed).
Pm
More information about the pmwiki-users
mailing list