On Tue, Feb 3, 2009 at 06:24, Petko Yotov <[email protected]> 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
Markup('title','directives',
'/\\(:title\\s(.*?):\\)/ei',
"SetTitleMarkup(\$pagename, PSS('$1')) ");
function SetTitleMarkup($pagename, $arg) {
static $tset = 1;
if ($tset==1)
PCache($pagename, $zz=array('title' => SetProperty($pagename,
'title', $arg )));
$tset++;
}
another from Petko
$QualifyPatterns['/\\(:title\\s(.*?):\\)/i'] = '';
and one more from Petko
Markup('title','directives',
'/\\(:title\\s(.*?):\\)/ei',
"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?
Roman
_______________________________________________
pmwiki-users mailing list
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users