[pmwiki-users] (:title:) of (:include:) included pages overrides page title
list_ob at gmx.net
Tue Feb 3 09:07:59 CST 2009
Petko Yotov wrote:
>> I still consider it very confusing that title directives from included
>> pages have an effect.
>In the PITS entry you linked to, I outlined why and how I use and need a
>GroupGooter to define the titles of all pages, based on the page name and
>some text variables.
Sorry, I missed this last time.
>> Why should I use a title directive, if the
>> include directive overrides it later?
>I agree with you here, I wouldn't be happy if I define a title in a page and
>later an included page usurps it.
>However... Look at the title of this thread you started.
>May we agree that the PITS entry you brought up says that title directive
>should have no effect at all from included pages?
Of course. I'm just thinking beyond this PITS entry and wonder whether
there is an simple solution satisfying everyone's needs.
Is it necessary to treat GroupFooter and GroupHeader like (:include:)
> The "no effect at all" is what I oppose. Not the first wins or last wins.
After I learned about the useful applications, I agree with you that
this possibility shouldn't be eliminated.
>"First title wins" is in another PITS entry, http://pmwiki.org/wiki/PITS/00266
>I have added a sample code to that page, so that the first title directive to
>override other title directives in the same page or in included pages. (Hans
Then the title from GroupHeader "wins", and again I have no
possibility to override it with a title directive set in the page
All three possibilities
* no inclusion at all
* first wins
* last wins
eliminate some possibilities people might be using currently.
Maybe priority shouldn't (only) base on order of evaluation of the
directives but on the kind of source:
* the page itself should IMO have top priority.
* header and footer could be evaluated next
* (:title:) from included pages should be controlled by a
configuration. I would disable it.
I don't know about the effort to separate the decision for GroupFooter
and GroupHeader from (:include:).
More information about the pmwiki-users