Pagelist Site Map

Summary: Create a sitemap using the page list directive
Version: 0.1
Prerequisites: Pmwiki version 2.2
Status: Production
Maintainer: Simon
Categories: Menus, PageList, MarkupOnly
Users: +1 (view / edit)

Questions answered by this recipe

How do I simply create a basic sitemap?

Description

Use the following page list template to create a sitemap.

Implementation

Add the following to your Site.LocalTemplates.

!! #sitemap
Site map showing number of pages

>>comment<<
[[#sitemap]]
(:template first:)
!! Sitemap &nbsp; [--((:pagelist fmt=count list=normal:) pages)--]
(:template first {=$Group}:)
[[#{=$Group}]]
!!! [[{=$Groupspaced}/]] [--((:pagelist fmt=count group={=$Group} list=normal:) pages)--] [-&nbsp;{{=$Group}/$:Summary} -]
(:template each:)
(:if ! equal {=$Name} {$DefaultName} :)
-< [[{=$Group}/{=$Namespaced}]] [-&nbsp;{=$:Summary} -]
(:ifend:)
[[#sitemapend]]
>><<
----
(:pagelist group=PmWiki name=-*-Talk fmt=#sitemap list=normal count=10:)

#sitemap

Site map showing number of pages

(:template first:)

Sitemap   (10345 pages)

(:template first {=$Group}:) #{=$Group}

{=$Groupspaced}? (0 pages)  {{=$Group}/$:Summary}

(:template each:)

{=$Namespaced}?  {=$:Summary}


Sitemap   (10345 pages)

Pm Wiki (311 pages)  

Access Keys  Access keys are keyboard shortcuts for tasks that would otherwise require a mouse
Admin Task  List of PmWiki administration related tasks organized in alphabetical order
Analyze Results  Instructions and possible responses from using the Site Analyzer
AQ  Repository for questions about PmWiki that have been answered, see also FAQ
Audiences  Patrick Michaud's comments regarding the "audiences" for which PmWiki was designed
Authoring Philosophy  Patrick Michaud on the reasons behind Author variables
Auth User  Authorization system that uses usernames and passwords
Available Actions  All PmWiki page actions (?action=) and other query parameters
Backup And Restore  background information and some basic backup and restore procedures
Basic Editing  PmWiki's basic edit syntax

Create a page, say "DefaultGroup.SiteMap", and copy the above page list directive modifying it as necessary.

Release Notes

If the recipe has multiple releases, then release notes can be placed here. Note that it's often easier for people to work with "release dates" instead of "version numbers".

See Also

  • SimpleSiteMap   Easy site map using only core PmWiki features
  • Sitemapper   Adds a dynamically generated sitemap to PmWiki.
  • SiteMapsWithOptions   Standard Site Map for websites
  • PageLists   Searching and listing pages by multiple criteria with templated output

Contributors

  • Simon

Comments

See discussion at PagelistSiteMap-Talk

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.