Summary: Create a sitemap using the
page list directive
Version: 0.1
Prerequisites: Pmwiki version 2.2
Status: Production
Maintainer: Simon
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 [--((:pagelist
fmt=count list=normal:) pages)--]
(:template first {=$Group}:)
[[#{=$Group}]]
!!! [[{=$Groupspaced}/]] [--((:pagelist
fmt=count group={=$Group} list=normal:)
pages)--]
[- {{=$Group}/$:Summary} -]
(:template each:)
(:if ! equal {=$Name} {$DefaultName} :)
-< [[{=$Group}/{=$Namespaced}]]
[- {=$:Summary} -]
(:ifend:)
[[#sitemapend]]
>><<
----
(:pagelist group=PmWiki name=-*-Talk
fmt=#sitemap list=normal count=16:)
|
(:template first:)
Sitemap (7598 pages)
(:template first {=$Group}:)
#{=$Group}
(:template each:)
Sitemap (7598 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
Auth User Authorization system that uses usernames and passwords
Blocklist Blocking IP addresses, phrases, and expressions to counteract spam and vandalism.
Categories Categories are a way to organize and find related pages
|
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.