[pmwiki-users] Wiki trails: feature/change request

Patrick R. Michaud pmichaud at pobox.com
Sun Mar 26 11:52:57 CST 2006


On Sun, Mar 26, 2006 at 06:36:28PM +0100, Hans wrote:
> Sunday, March 26, 2006, 11:43:02 AM, Joachim wrote:
> > I have a page inside a wiki trail, and at one point, I wanted to write
> 
> > "If you don't want to follow this advice, simply skip the rest of this
> > page and continue on page [[next page of trail]]."
> 
> > Now I could simply enter the next trail page in the link, but that's not
> > what I want - I'd like a markup that produces a link to the next trail
> > page, whichever that is.
> 
> you can do this with  a dynamic trail created with pagelist.
> Add to Site.PageListTemplates:
> 
> !!!#nextontrail
> dynamic trail of form <<prev | Group | next>>
> [@
> [[#nextontrail]]
> (:if equal {$FullName} {=$FullName}:)[[{>$FullName}|+]](:if:)
> [[#nextontrailend]]
> @]
> 
> and in your page use
> 
> (:pagelist trail=GroupName.TrailPageName fmt=#nextontrail :)
> 
> (use the name of your trailpage here)
> 
> The pagelist will show the next page of the trail as a link.

Unfortunately, I think it also puts the resulting link inside of
it's own <div>, which probably doesn't work well with "and 
continue on page [[next page of trail]]."

Pm




More information about the pmwiki-users mailing list