Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

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

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=16:)

(:template first:)

Sitemap   (7598 pages)

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

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

(:template each:)

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


Sitemap   (7598 pages)

Pm Wiki (271 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=)
Backup And Restore  background information and some basic backup and restore procedures
Basic Editing  PmWiki's basic edit syntax
Basic Variables  core variables
Blocklist  Blocking IP addresses, phrases, and expressions to counteract spam and vandalism.
Block Markup  Mkrkup resulting in paragraphs
Categories  Categories are a way to organize and find related pages
Change Log  Log of changes made to PmWiki by Release

Create a page, say "DefaultGroup.SitePage", 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

Contributors

Comments

User notes: If you use, used or reviewed this recipe, you can add your name. The following format is recognized:
* (+) Optional positive comment. Name, date
* (-) Optional negative comment. Name, date

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 February 15, 2010, at 05:39 PM