[pmwiki-users] Suppressing Group Name . . .
Hans
design at flutesong.fsnet.co.uk
Wed Aug 3 16:22:43 CDT 2005
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
More information about the pmwiki-users
mailing list