[pmwiki-users] title directive and links

Patrick R. Michaud pmichaud at pobox.com
Tue Sep 27 18:02:12 CDT 2005


On Wed, Sep 28, 2005 at 10:38:57AM +1200, John Rankin wrote:
> >> I don't understand. I use [[$Group.$Title->$Group.$Name]] link that
> >> doesn't require TitledLinks recipe. Does [[$Group.$Name|+]] link have
> >> any advantage?
> >
> >No, in fact [[$Group.$Title -> $Group.$Name]] is more
> >efficient.
> 
> Err; now I don't understand. I thought the difference is that
> [[$Group.$Name|+]] evaluates the + when a page is displayed,
> whereas [[$Group.$Title->$Group.$Name]] evaluates when a
> page is stored. So, if somebody edits the (:title:), the +
> variant will still be correct, whereas the $Group.$Title
> variant will be wrong. Furthermore, the edit will add a
> new entry to the RecentChanges page, and leave the old one
> behind, because pmwiki will look for $Group.New Title 
> instead of $Group.Old Title.
> 
> But I could be wrong (it happens a lot).

No, you nailed it squarely on the head.  [[$Group.$Name|+]]
definitely has the advantage of working even when the 
page's title is changed.

Pm




More information about the pmwiki-users mailing list