[pmwiki-users] off-topic: Behaviour of non-existiant home page (was: Nested groups)

Patrick R. Michaud pmichaud at pobox.com
Fri Jun 3 11:21:30 CDT 2005


On Fri, Jun 03, 2005 at 05:06:19PM +0100, Hans wrote:
> Friday, June 3, 2005, 4:32:28 PM, Neil wrote:
> > On my wiki [[Group]] points to Group.HomePage. As far as I know, this is
> > the default behavior.
> 
> pmwiki defines:
> 
>    $DefaultGroup = 'Main';
>    $DefaultName = 'HomePage';
> 
> You can redefine it in config.php to a different default group and an
> alternative to HomePage as the default page in a group.
> 
> also pmwiki defines
> 
>    $PagePathFmt = array('$Group.$1','$1.$1','$1.$DefaultName');
> 
> which means (I think) given a name as a link or in the address bar
> it looks first if a page of that name exists in the current group,
> then if it exists in a group of the same name: Group.Group,
> then if Group.HomePage exists (or what one has defined as
> $DefaultName).
> 
> So it finds Group.HomePage only if you have not got a page
> Group.Group.

Hans has it exactly right.  This also means that [[XYZ]] will 
automatically link to XYZ.HomePage if it exists and if there are no 
pages named XYZ in the current group or in the XYZ group.

Pm



More information about the pmwiki-users mailing list