[pmwiki-users] (:title:) of (:include:) included pages overrides page title

Roman romat2 at gmail.com
Tue Feb 3 11:21:20 CST 2009

On Tue, Feb 3, 2009 at 06:24, Petko Yotov <5ko at 5ko.fr> wrote:

> Do you think we should push for some change to the core, or the solution I
> gave is good enough and we could instead just update the documentation?

I strongly support change of this behaviour in the core. I remember when I
had to answer numerous questions of confused users regarding "mysterious"
titles (and even I sometimes forgot it and was surprised why title of my
page shows something different). So I was very glad when Hans came with
solution last year.

Now he have three solutions:

One from Hans

  "SetTitleMarkup(\$pagename, PSS('$1')) ");
function SetTitleMarkup($pagename, $arg) {
   static $tset = 1;
   if ($tset==1)
       PCache($pagename, $zz=array('title' => SetProperty($pagename,
'title', $arg )));

another from Petko

$QualifyPatterns['/\\(:title\\s(.*?):\\)/i'] = '';

and one more from Petko

  "IsEnabled(\$GLOBALS['PCache'][\$pagename]['=p_title'], false)>''? '':
PZZ( PCache(\$pagename,
         \$zz=array('title' => SetProperty(\$pagename, 'title', PSS('$1'))))

If any of these solutions will not be part of the core, which is the
preferred one?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20090203/4fb46881/attachment.html 

More information about the pmwiki-users mailing list