[pmwiki-users] (:title:) of (:include:) included pages overrides page title
5ko at 5ko.fr
Thu Feb 5 13:53:37 CST 2009
On Thu, 05 Feb 2009 19:38:49 +0100, Oliver Betz <list_ob at gmx.net> wrote:
> Petko Yotov wrote:
>>> > > * 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.
>>> > Excellent. I like very much these ideas, and I believe such a
>>> > will solve all currently percieved problems. I'll think about some
>>> > implementation, either Cookbook, or to the Core.
>>> I wonder if it works if we simply process the (:title:) markup
>>> before (:include:), and set it so that "first title wins".
>>Yes. This code seems to work :
>> "PZZ(IsEnabled(\$GLOBALS['PCache'][\$pagename]['=p_title'], false) ||
>> \$zz=array('title' => SetProperty(\$pagename, 'title',
> I can't understand easily what yo are doing <g>, but I can test:
> The code above eliminates the title from included pages, but (:title:)
> from GroupHeader still overrides (:title:) on the page.
In config.php it should start with 'xtitle' instead of 'title'.
Markup('xtitle','<include', #... etc.
While this works, we may adopt a different approach for the core,
possibly by redefining the SetProperty() function.
More information about the pmwiki-users