[pmwiki-users] Suppressing Group Name . . .
Ben Wilson
ameen at dausha.net
Wed Aug 3 16:25:56 CDT 2005
Ingenius. I'll try it out this evening.
Ben
Quoting Hans <design at flutesong.fsnet.co.uk>:
> Wednesday, August 3, 2005, 9:43:01 PM, Ben wrote:
>> Next frage. Is there an easy way to detect whether we're at the default page
>> within PmWiki. If so, how?
>
> # hide group on HomePage and Group page
> $gpg = FmtPageName('$Group.$Group',$pagename);
> $hpg = FmtPageName('$Group.HomePage',$pagename);
> if (PageExists($hpg)||PageExists($gpg))
> $HTMLStylesFmt[] = " #pagegroup { display:none } \n ";
>
> This will hide the Group name for Group.Group and Group.HomePage,
> if in the skin template the $Group or $Groupspaced variable
> is in a <div id='pagegroup'>
>
>
> Best,
> ~Hans
>
>
--
Regards,
Ben Wilson
"Mundus vult decipi, ergo decipiatur"
More information about the pmwiki-users
mailing list