[pmwiki-users] Renaming Group's Home Page . . .
    Patrick R. Michaud 
    pmichaud at pobox.com
       
    Fri Jun 17 17:03:42 CDT 2005
    
    
  
On Fri, Jun 17, 2005 at 01:45:28PM -0700, H. Fox wrote:
> The main reason I switched is because I started putting a (:pagelist:)
> directive in each group's home page.  Using $Group.HomePage turns out
> to work better for this.
> 
> (Why? Because names of non-homepage pages can start with the group
> name.  Using $Group.$Group means if the group is Cooking, pages like
> CookingUtensils and CookingWithGas get filtered out of the page list.)
> 
> The default $Group.HomePage content I've been using is similar to
> 
> !!!{$Group} Pages:
> (:pagelist group={$Group} list=normal fmt=simple -.HomePage:)
> 
> which presents some sensible content for users to see when they click
> the group name.
Note that one can also get list=normal to exclude the current page
from the results:
    $SearchPatterns['normal'][] = "!^$pagename$!";
Or, to exclude any page named the same as its group:
    $SearchPatterns['normal'][] = '!^([^.])\\.$1$!';
> Are there other reasons to prefer Zxcv.Zxcv or Zxcv.HomePage?
>From a purely visual perspective, sometimes it's nice if the page's
title reads "Zxcv" rather than "Home Page" (especially if the group
names aren't displayed by the skin).  But it really boils down to
preference.
Pm
    
    
More information about the pmwiki-users
mailing list