[pmwiki-users] "Dynamic" wiki trails - passing along the name of the trail page

chr at home.se chr at home.se
Wed Mar 9 03:50:45 CST 2005


While on the topic of wiki trails... there is one drawback with the 
current implementation (even when augmented with categories to generate 
the trail). This drawback is that each page that belongs to a wiki trail 
needs to contain 

	<<|WikiTrail|>>

for every trail that the page belongs to. It would therefore be nice if we 
could somehow pass along an "argument" for when browsing a page that 
contains the name of the trail page. Let's imagine that going to this URI

	http://www.pmwiki.org/wiki/Test/SomePage?trail=Test/TrailPage

would show Test.SomePage with a trail at the top and/or bottom of the 
page, using 'Test.TrailPage' to determine the preceeding and succeding 
pages in the trail.

It doesn't feel so good to force where the trail links are shown, so 
unless you modify the template to allocate space for the trail, I think 
we'll need a special markup which will then be replaced with the "dynamic" 
trail. Perhaps we could simply add something like the following to 
GroupHeader and/or GroupFooter:

	(:dynamic-trail:)

which would then only render if the argument 'trail=...' was given. If no 
'trail=...' is given, (:dynamic-trail:) won't show at all, meaning that 
the user will have to follow on of the category-links on the page to get 
to a trail-page.

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list