[pmwiki-users] (:subtitle:) markup

Patrick R. Michaud pmichaud at pobox.com
Sun May 28 11:42:13 CDT 2006

On Sun, May 28, 2006 at 05:49:08PM +0200, christian.ridderstrom at gmail.com wrote:
> Would it be too risky to let (:title ..:) store the resulting title in the 
> page, so that eg [[Cars.The90s|+]] would work?  I guess we're in the 
> territory of page attributes now...

(:title:) *does* store the resulting title into the page file (this
is how {...$Title} and [[...|+]] currently work).

The reason that [[Cars.The90s|+]] doesn't work is that (:include:)
directives aren't processed when saving pages, thus any (:title:)
directive that is in an included page isn't processed at the time
of the save.

I can add an option to allow (:include:) pages to be processed
during page saves, if that's what is desired.  This would mean
that (:title:) directives in included pages would be saved as
attributes, and essentially do the same as currently.  (However,
there might be lots of other side-effects from doing this; I haven't
tracked it all down yet.)

> >But in the more general case -- the 'fix' to (:title:) is just going to 
> >be a redefinition of the default (:title:) markup.  If a site admin 
> >needs the old behavior, they can just define (:title:) back the way it 
> >was before.
> I'd actually like to both eat my cake and keep it in this case... But it's 
> not a big problem, so maybe you should just go ahead and fix it the way 
> you've planned.

I know that having (:title:) "active" from included pages currently
goes against the expectation of a lot of authors, so it's probably
better to make the default that pages receive their titles only
from (:title:) directives in the page itself.


More information about the pmwiki-users mailing list