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
[email protected]
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to