Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

GroupHomePageChange

Summary: How to rename the group's starting page, i.e., be different than the default "HomePage".
Version: N/A

Users: +1

Categories: Administration

Question answered by this recipe

How can the group's starting page be renamed? (Be different than the default "HomePage"?)

Description

Add the following in local/config.php:

    $DefaultName = 'OtherPage';

and adjust OtherPage accordingly.

For example, on a wiki in French language, you could set in config.php:

  $DefaultGroup = "Accueil";
  $DefaultName  = "Accueil";
  $DefaultPage  = "Accueil.Accueil";

See the documentation for $DefaultGroup, $DefaultName and $DefaultPage.

Comments

Twylite, 2009/09/12: If you set $DefaultName = 'Home' and then create a link to a group that doesn't exist yet (for example [[NewGroup/]]) you will be taken to NewGroup.NewGroup?action=edit rather than the expected NewGroup.Home?action=edit.

To solve this you must change $PagePathFmt in config.php:
  $PagePathFmt = array('{$Group}.$1','$1.{$DefaultName}','$1.$1');

User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.

Edit - History - Print - Recent Changes - Search
Page last modified on October 26, 2011, at 04:12 AM