[pmwiki-users] Bug in (:title:) markup?

Roman romat2 at gmail.com
Tue Jan 29 03:53:03 CST 2008


Thank you Hans,

after years I've finally got rid of lot of confusing GroupFooters!

Roman

On Jan 27, 2008 12:20 PM, Hans <design5 at softflow.co.uk> wrote:

> Sunday, January 27, 2008, 11:16:31 AM, Hans wrote:
>
> > Add this to config.php, you do not need to change stdmarkup.php:
>
> perhaps better call the function 'SetTitleMarkup':
>
> ## (:title ...:) First title wins, any subsequent (:title ...:) is
> ignored.
> 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++;
> }
>
>
>  ~Hans
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20080129/73836779/attachment-0001.html 


More information about the pmwiki-users mailing list