[pmwiki-users] GroupHomePageChange

Patrick R. Michaud pmichaud at pobox.com
Wed Sep 27 12:48:25 CDT 2006

On Wed, Sep 27, 2006 at 01:35:25PM -0400, Stirling Westrup wrote:
> Patrick R. Michaud wrote:
> > On Wed, Sep 27, 2006 at 04:30:48PM +0200, Mike wrote:
> >>    Hello,
> >>
> >>    I'm looking for what I think had been described in this recipe:
> >>
> >>    http://www.pmwiki.org/wiki/Cookbook/GroupHomePageChange
> >>
> >>    i.e. I'd like to have something like "Start" or "Index" instead of
> >>    "HomePage".
> >>
> >>    Does anyone remember the original content so that we could restore it?
> > 
> > It's just the following in local/config.php:
> > 
> >     $DefaultName = 'Start';
> > 
> BTW, this doesn't seem to play nicely with non-existent pages in
> non-existent groups. I have my $DefaultName set to 'Home' and would
> expect a link like [[NewGroup/]] to point to [[NewGroup/Home]]. Instead
> it seems to point to [[NewGroup/NewGroup]], until I create
> NewGroup.Home, which is a pain whenever I want to create a new group.

Yes, whenever there's a non-existent page there are arguably two
correct choices, and for a variety of reasons pre-dating the [[Group/]]
markup my choice ended up being "page same name as group" as opposed
to "$DefaultName within group".

With what we have available now, if I had it to do all over
again I might go with setting something like

    $DefaultName = '{$Group}';

to mean "home page is named the same as the group".  But I don't
know how much I'll break by changing things here, or if this is
really the correct approach to take.


More information about the pmwiki-users mailing list