[pmwiki-users] Idea for trail link to trail page

Patrick R. Michaud pmichaud at pobox.com
Tue Dec 20 15:09:46 CST 2005


On Tue, Dec 20, 2005 at 03:05:47PM -0500, Waylan Limberg wrote:
> On 12/20/05, christian.ridderstrom at gmail.com
> <christian.ridderstrom at gmail.com> wrote:
> > Hi
> >
> > Here's an idea. Let's assume you're currently on a page in trail and you
> > click on the trail link (i.e. the one that puts you on the trail page).
> > What if the trail link would also specify an anchor that has been
> > automatically generated, so that you get to se the page from which you
> > came?
> >
> >
> I suppose this is possible (sort of). The browser will (sometimes)
> send the referring page in the HTTP Referrer Header which is available
> to as a PHP Global Variable.  ...

I don't think we need HTTP Referer for this -- it could be done
by having the trail markup add an anchor corresponding to the current
page name to the center item.  Thus for markup like <<|TrailPage|>>
the center link becomes a link to, say, "TrailPage#trail_ThisPage".  
Then when rendering TrailPage, we simply add "trail_*" anchors to
each candidate trail stop.

So, someone encountering the <<|TrailPage|>> markup could select
"TrailPage" and be automatically be taken to the anchor corresponding
to the referring page in the markup. 

It has possibilities, but I think we need to nail down a few other 
features first.  This probably deserves a PITS entry for now, at any
rate.

Pm




More information about the pmwiki-users mailing list