|
PITS /
00917Summary: Page lists to be able to create wiki trails
Created: 2007-05-02 17:10
Status: Open
Category: Feature
From: Simon
Assigned:
Priority: 5
Version: 2.2 beta
OS:
Description: From pmwiki-users initiated by Christophe [1] On Fri, Apr 06, 2007 at 10:20:57PM +0200, Roman wrote: > I am not sure whether page wikitrail can read dynamically created ordered list. I would define template this way:
> [[#trailindex]]
> (:if equal {$FullName} {=$FullName}:)<< [[{<$FullName}|+]] |
> [[{=$FullName}|+]] | [[{>$FullName}|+]] >>(:if:)
> [[#trailindexend]]
This is so incredibly useful and obvious (in hindsight) that I think it ought to be in the core Site.PageListTemplates. Then people can do We could even develop a faster fmt=trail version (no #) that avoids the need to process a long list of records just to output a single line. Pm I don't know if the question of wikitrail reading dynamic lists was ever resolved. However, using Hans's PowerTools and WikiSh together you can easily create a static pagelist. If this pagelist uses the format above then you've created the wikitrail. Note the example creating a static pagelist at WikiShExamples#StaticPageListB and then creating the WikiTrail itself in a different fashion at WikiShExamples#MakeWikiTrail. |