[pmwiki-users] Suppressing Group Name . . .

Hans design at flutesong.fsnet.co.uk
Wed Aug 3 16:30:29 CDT 2005


Wednesday, August 3, 2005, 10:22:43 PM, Hans wrote:
> # 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'>

This was wrong . Try this instead:

# hide group on HomePage and Group page
$grp = FmtPageName('$Group.$Group',$pagename);
$hpg = FmtPageName('$Group.HomePage',$pagename);
if ($pagename==$hpg || $pagename==$grp) 
   $HTMLStylesFmt[] = " #pagegroup { display:none } \n ";


Best, 
~Hans                           





More information about the pmwiki-users mailing list