[pmwiki-users] Re: Re: Dynamic wiki trails - passing along the name of the trail page
John Rankin
john.rankin at affinity.co.nz
Wed Apr 6 01:11:45 CDT 2005
On Wednesday, 6 April 2005 10:33 AM, Martin Fick <fick at fgm.com> wrote:
>
>Patrick R. Michaud pmichaud at pobox.com said:
>
>> So, instead of modifying URLs, let's use cookies. We can set a "trail"
>> cookie on the browser that identifies the reader's current trail,
>> then the <<|{?trail}|>> or <<|{$TrailCookie}|>> markup displays the
>> trail path corresponding to the cookie. The cookie gets set by any
>> trail map page containing a (:trailpage:) directive, so when someone
>> visits a trail page, they're setting the implicit {?trail} for any
>> pages they visit later (or at least until they come to another
>> (:trailpage:)). This stays in place even if they visit pages not
>> on the trail, or follow non-trail links.
>
> Alas, this seems to have a simliar problem but worse when getting
>sidetracked:
>
> If the user is on a trail and get sidetracked onto another page,
>a page with (:trailpage:) on it, then can now no longer use the
>back button to return to his original trail! I really don't
>like that!
>
>
> -Martin
Have a look at http://www.pmwiki.org/wiki/PITS/00398
In particular:
When a visitor arrives on a page for the first time, all trails through that page should be "lit". When the visitor starts following a trail, other trails through the current page should "turn off". If the visitor leaves the trail for another page, such as by following an off-trail link, any trails through the new page should light up. So:
proposed solution is that << PreviousPage | TrailPage | NextPage >> should generate [[PreviousPage(?trail=TrailPage)]] and [[NextPage(?trail=TrailPage)]]
if I click previous or next, PmWiki now knows that I am moving along TrailPage's trail (from the ?trail=TrailPage in the address)
so PmWiki can hide any other trails that may pass through the new page
only trail links carry a ?trail= so following any other link will re-light the trails
And this works whether the ?trail= a static wiki trail or a dynamic category trail.
Does this achieve what you want?
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list