PmWiki.WikiGroup 5.6 KB

1234567891011
  1. version=pmwiki-2.1.11 ordered=1 urlencoded=1
  2. agent=Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.8.0.3) Gecko/20060425 SUSE/1.5.0.3-7 Firefox/1.5.0.3
  3. author=Pm
  4. csum=updated list of all groups
  5. host=24.1.26.255
  6. keywords=trailing dot, trailing slash, default group
  7. name=PmWiki.WikiGroup
  8. rev=65
  9. targets=Main.WikiSandbox,Main.HomePage,Profiles.Pm,PmWiki.MailingLists,PmWiki.Links,PmWiki.CreatingNewPages,PmWiki.PmWiki,Site.Site,Site.AllRecentChanges,PmWiki.GroupHeaders,PmWiki.Passwords,PmWiki.WikiAdministrator,PmWiki.LocalCustomizations,PmWiki.PerGroupCustomizations,PmWiki.DocumentationIndex
  10. text=%25audience%25 authors (basic)%0a(:keywords trailing dot, trailing slash, default group:)%0aPmWiki pages are organized into groups of related pages. This feature was added to PmWiki 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 [[http://pmichaud.com/pipermail/pmwiki-users/2006-March/024838.html|post]] to the pmwiki-users [[mailing list(s)]].%0a%0aBy 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:%0a%0a(:markup class=horiz:)%0a*[[Main.WikiSandbox]]%0a*[[Main/WikiSandbox]]%0a*[[(Main.Wiki)Sandbox]]%0a*[[Main.WikiSandbox | link text]]%0a(:markupend:)%0a%0aTo link to the default home page of a group (discussed [[#groupdefaultpage|below]]), the name of the page can be omitted, like this:%0a%0a(:markup class=horiz:)%0a*[[Main.]]%0a*[[Main/]]%0a(:markupend:)%0a%0a!! Creating groups%0aCreating a new group is as easy as [[creating new pages]]; simply edit an existing page to include a [[link(s)]] 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).%0a%0aFor 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.%0a%0a!!Groups in a standard PmWiki distribution%0a* [[Main]]: The default group. On many wikis, it contains most of the author-contributed content. Main.HomePage and Main.WikiSandbox come pre-installed.%0a* [[PmWiki]]: An edit-protected group that contains PmWiki documentation and help pages.%0a* [[Site]]: Holds a variety of utility and configuration pages used by PmWiki, including `SideBar, Search, Preferences, `AllRecentChanges, `ApprovedUrls, and Blocklist.%0a%0aTo list all the groups in a site, try searching for "[@fmt=group@]".%0a%0a!! Special Pages in a Group%0aBy default, the RecentChanges page of each group shows only the pages that have changed within that group; the [[Site.AllRecentChanges]] page shows all pages that have changed in all groups.%0a%0aEach group can also have [[GroupHeader(s)]] or `GroupFooter pages that contain text to be automatically prepended or appended to every page in the group. A group can also have a `GroupAttributes page that defines attributes (read and edit passwords) shared by all pages within the group. %0a%0aEach page can also have its own individual read/edit password that overrides the group passwords (see [[Passwords]]).%0a%0aFinally, [[wiki administrator]]s can set [[local customizations]] on a per-group basis--see [[PerGroupCustomizations]].%0a%0a[[#groupdefaultpage]]%0a!! Group's default page%0a%0aThe default "start page" for a group is a page whose name is: (1) the same as the group (Foo/Foo), (2) HomePage (Foo/HomePage), or (3) a name that the administrator has assigned to the [={$DefaultName}=] variable in the configuration.php file. (Note, on this site, the value of [={$DefaultName}=] is `{$DefaultName} and, thus, the default home page would be `Foo/{$DefaultName}. %0a%0aAs noted above, when linking to the default home page, authors can omit the page name and simply identify the group followed by a dot ([=[[Foo.]]=]) or forward slash ([=[[Foo/]]=]).%0a%0aNote the trailing dot (or trailing forward slash) is required to ensure that the link unambiguously points to the identified group. If the dot or 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). This ''trailing dot'' markup was added in version 2.1.7%0a%0a!! Subgroups? Subpages?%0aNo, PmWiki does not have subpages. Pm's reasons for not having subgroups are described at [[PmWiki:HierarchicalGroups]], but it comes down to not having a good page linking syntax. If you create a link or pagename like [@[[A.B.C]]@] PmWiki doesn't think of "B.C" as being in group "A", it instead thinks of "C" as being in group "AB", which is a separate group from "A". Wiki administrators can look at [[Cookbook:SubpageMarkup]] and [[Cookbook:IncludeWithEdit]] for recipes that may be of some help with developing subgroups or subpages.%0a%0a!!Restricting the creation of new groups%0aYou can set PmWiki's $GroupPattern variable to only accept the group names you want to define. For example, to limit pages to the "PmWiki", "Main", "Profiles", and "Example" groups, add the following to local/config.php:%0a%0a $GroupPattern = '(?:Site|PmWiki|Main|Profiles|Example)';%0a%0aWith this setting, only the listed groups will be considered valid WikiGroups. You can add more groups to the list by placing additional group names separated by pipes (|).%0a%0aSee other solutions to this at [[Cookbook:LimitWikiGroups]]%0a%0a%25trail%25%3c%3c|[[Documentation Index]]|>>
  11. time=1154901993