[pmwiki-users] Annoying HomePage problem (again!)

Patrick R. Michaud pmichaud at pobox.com
Fri Feb 9 09:11:18 CST 2007


On Thu, Feb 08, 2007 at 04:25:30PM -0500, Donald Z. Osborn wrote:
>    Solved the French "Accueil" issue a while back but here's a more annoying
>    because more basic problem (also because it may stem from a mistake I made
>    in a rush):
>    ...
>    No matter how much we like the group name we don't want to see it
>    twice.But now it seems I'm stuck with it.Can't get it to default to
>    HomePage

This is now possible with 2.2.0-beta30 (just released, announcement
to come later today).

PmWiki now uses $PagePathFmt to determine the default home page
for groups that don't have a home page.  Previously PmWiki always
defaulted to using the group name as the name of the group's home page.

So, to use $DefaultName as the default group home page, set

    $PagePathFmt = array('{$Group}.$1', '$1.{$DefaultName}', '$1.$1');

This will tell PmWiki to use $DefaultName as the name of a
non-existent group home page.  Note that if a group contains 
a page with the same name as the group, then PmWiki will often
use it as the home page.  So...

>    Is it doomed because I opened Gefeltefish/Gefeltefish without paying
>    attention?

Opening it shouldn't be a problem, as long as you are certain
to delete the Gefeltefish.Gefeltefeish page entirely.  (Try
removing the file from wiki.d/ ).

Pm


P.S.:  Some people following the pmwiki-users list may have noticed 
that previous messages from me referred to a 
$EnableGroupHomeIsDefaultName variable that would the same
as what $PagePathFmt is doing now.  I finally figured out how to 
solve the issue without needing a special configuration variable 
for it.  :-)




More information about the pmwiki-users mailing list