<br><br><div class="gmail_quote">On Tue, Feb 3, 2009 at 06:24, Petko Yotov <span dir="ltr"><<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Do you think we should push for some change to the core, or the solution I<br>
gave is good enough and we could instead just update the documentation?<br>
</blockquote></div><br>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.<br><br>Now he have three solutions:<br><br>One from Hans<br><br>
Markup('title','directives',<br>
'/\\(:title\\s(.*?):\\)/ei',<br>
"SetTitleMarkup(\$pagename, PSS('$1')) ");<br>
function SetTitleMarkup($pagename, $arg) {<br>
static $tset = 1;<br>
if ($tset==1)<br>
PCache($pagename, $zz=array('title' => SetProperty($pagename, 'title', $arg )));<br>
$tset++;<br>
}<br>
<br>
another from Petko<br>
<br>
$QualifyPatterns['/\\(:title\\s(.*?):\\)/i'] = '';<br>
<br>
and one more from Petko<br>
<br>
Markup('title','directives',<br>
'/\\(:title\\s(.*?):\\)/ei',<br>
"IsEnabled(\$GLOBALS['PCache'][\$pagename]['=p_title'], false)>''? '': PZZ( PCache(\$pagename,<br>
\$zz=array('title' => SetProperty(\$pagename, 'title', PSS('$1')))) )");<br>
<br>
If any of these solutions will not be part of the core, which is the preferred one?<br>
<br>
Roman<br>
<br>