|
PmWiki /
Wiki Group
authors (basic) Pm Wiki pages are organized into groups of related pages. This feature was added to Pm Wiki to allow authors to create their own wiki spaces of specialized content on their own, without having to become, or rely on, wiki administrators. See Pm's post to the pmwiki-users mailing list. In-group and cross-group linking
By default, page links are between pages of the same group; to create a link to a page in another group, add the name of the other group and a dot or slash to the page name. For example, links to Main/WikiSandbox could be written as:
To link to the default home page of a group, the name of the page can be omitted, like this:
Creating groups
Creating a new group is as easy as creating new pages; simply edit an existing page to include a link to the new group's default home page (or any page in the new group) then click on the '?' to edit the page. As a rule, group names must start with a letter (but this can be changed by the wiki administrator by adding
in For example, to make a default page in the group Foo, create a link to [[Foo/]] (or [[Foo.]]). To make a page called Bar in the group Foo, create a link to [[Foo/Bar]] and follow the link to edit that page. Groups in a standard Pm Wiki distribution
Special Pages in a Group
By default, the Recent Changes? page of each group shows only the pages that have changed within that group; the Site.All Recent Changes? page shows all pages that have changed in all groups. Each group can also have Group Header or Group Footer pages that contain text to be automatically prepended or appended to every page in the group. A group can also have a Group Attributes page that defines attributes (read and edit passwords) shared by all pages within the group. Each page can also have its own individual read/edit password that overrides the group passwords (see Passwords). Finally, wiki administrators can set local customizations on a per-group basis--see Group Customizations. Group's default page
The default "start page" for a group is a page whose name can be:
Note, on this site, the value of {$DefaultName} is Wettkampfregeln and, thus, the default home page would be You can usefully change the default search order for an entered page name by setting the variable $PagePathFmt = array('$Group.$1', '$1.$DefaultName', '$1.$1', '$DefaultGroup.$1', 'Profiles.$1');
where "$1" is the name of the page entered. If you are setting $DefaultName in order to make a start page for your groups, you will need to also define $PagePathFmt (see above) to get consistent use of this functionality. The simplest setting would be this: $PagePathFmt = array('$Group.$1', '$1.$DefaultName');
Note that the order of the definitions of these variables ($DefaultName and $PagePathFmt) is important - it must occur before any call to Resolve Page Name?() and it (therefore) it cannot occur in a per-page or per-group customization script. As noted above, when linking to the default home page, authors can omit the page name and simply identify the group followed by a forward slash ([[Foo/]]). Note the forward slash is required to ensure that the link unambiguously points to the identified group. If the slash is omitted, the link can end up being interpreted as pointing to an existing (or new) page in the current group (if the group, or its default home page, do not exist). Subgroups? Subpages?
No, Pm Wiki does not have subpages. Pm's reasons for not having subgroups are described at PmWiki:Hierarchical Groups, but it comes down to not having a good page linking syntax. If you create a link or pagename like Restricting the creation of new groups
You can set Pm Wiki's $GroupPattern variable to only accept the group names you want to define. For example, to limit pages to the "Pm Wiki", "Main", "Profiles", and "Example" groups, add the following to local/config.php: $GroupPattern = '(?:Site|Site Admin|Pm Wiki|Main|Profiles|Example)';
With this setting, only the listed groups will be considered valid Wiki Groups. You can add more groups to the list by placing additional group names separated by pipes (|). See other solutions to this at Cookbook:Limit Wiki Groups and Cookbook:New Group Warning. FAQ
How can I get rid of the 'Main' group in urls for pages pointing to Main? How can I limit the creation of new groups? See Cookbook:Limit Wiki Groups. Why doesn't [[St. Giles and St. James]] work as a link? (It doesn't display anything.) Because it contains periods, and destroys Pm Wiki's file structure, which saves pages as Group.PageName. Adding those periods disrupts this format. Links may only contain words. If you need a link precisely as shown, the page must be named eg St Giles And St James? then you can use the How can I delete a wiki group? Normally you can't, as this requires an admin with server-side access to delete the file that makes up the group's How can I delete a wiki group's Normally you can't, as this requires an admin with server-side access to delete a file. But there is an optional method of making it possible to delete Can I delete a wiki group inside Yes, if you delete all files named How can I list all pages in a Wiki Group? In a wiki page use This page may have a more recent version on pmwiki.org: PmWiki:WikiGroup, and a talk page: PmWiki:WikiGroup-Talk. |