[pmwiki-users] Re: Re: Re: Re: Re: Dynamic wiki trails
chr at home.se
chr at home.se
Fri Mar 18 03:21:42 CST 2005
On 18 Mar 2005, John Rankin wrote:
> On Thursday, 17 March 2005 11:33 PM, chr at home.se wrote:
> >...point out that I think a '!' is needed to separate (:trail xyz:) from
> >(:trail !xyz:), where the former just refers to the page, and the latter
> >refers to the category. Here (:trails !catA:) is supposed to generate the
> >list of all pages in catA and use this list as the *trail map*. This trail
> >map is then checked against the current page to see if/how a trail link
> >should be generated.
>
> Yes, I see that now. (My brain needs a cpu and bus upgrade)
Intel or AMD? (Btw, it wasn't exactly obvious, my brain was hurting after
thinking through that stuff:-)
> >We could however be (too?) clever and introduce
> >
> > (:trails !!catA:)
>
> This also means we don't need to treat !trail as a special category.
>
> BTW I'd expect <<|!RatsAndMice|>> to work too.
You mean that <<!!RatsAndMice>> should work the same as
(:trails !!RatsAndMice:).
Guess you'd expect that, but I still think the latter is easier to read...
> If the current page is in Category.RatsAndMice, we get previous and next
> links; otherwise we get ''.
Um... *thinking* .. with
(:trails !!RatsAndMice:)
don't you mean that if the current page is listed on a *trail page* that
belongs to the category RatsAndMice we'll get trail links?
It's when you use
(:trails !RatsAndMice:)
that we'll get a trail link when the current page is listed on the page
Category.RatsAndMice (i.e. the current page belongs to this category).
> I'll write this up as 2 PITS: TrailsLite and TrailsFullStrength.
A very good idea, give me the links when you'd like me to read it.. I
suspect we'll have to iterate through the them a few times before we've
gotten all the details right...
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr
More information about the pmwiki-users
mailing list