[pmwiki-users] happy trails to you ...

Hans design at softflow.co.uk
Mon Mar 20 17:47:11 CST 2006


Monday, March 20, 2006, 10:01:29 PM, Neil wrote:
> Is it possible to create a trail from a page with a pagelist on it? 
> In particular, I have a pagelist on Profiles.Profiles that lists all
> the authors. I tried forming a trail using <<|[[Profiles]]|>>, but it
> does not work. Any hints? In essence, I want a self-maintaining trail
> that goes through all of the pages in one group.

Here are two dynamic trails constructed with pagelist:

Add to Site.PageListTemplates (beware of email wrapping lines):

!!!#grouptrail
for dynamic trail of form prev.Name | Group | next.Name
[@
[[#grouptrail]]
(:if equal {$FullName} {=$FullName}:)[[{<$FullName}|+]] | [[{$Group}]] | [[{>$FullName}|+]](:if:)
[[#grouptrailend]]
@]

!!!#grouptrail2
for dynamic trail of form <<prev | Group | next>>
[@
[[#grouptrail2]]
(:if equal {$FullName} {=$FullName}:)[[{<$FullName}| &laquo; prev ]] | [[{$Group}]] | [[{>$FullName}| next &raquo; ]](:if:)
[[#grouptrail2end]]
@]

and add to GroupHeader or GroupFooter:

(:pagelist group={$Group} fmt=#grouptrail :)
or
(:pagelist group={$Group} fmt=#grouptrail2 :)

The trail has a link to the Group homepage
(Group.Group or Group.HomePage), but it does not rely on what is on
it.
    and happy dynamic trails to you!

Best, 
~Hans                           





More information about the pmwiki-users mailing list