[pmwiki-users] How to change title to do only first one on page

Chris Cox ccox at airmail.net
Wed Feb 15 00:27:27 CST 2006


Here's the title markup... I'd like to set a flag or check the value
of the set variable to prevent subsequent title markups from
getting processed for a page.

Any way to put an 'if' inside the action below??

## (:title:)
Markup('title','>&',
  '/\\(:title\\s(.*?):\\)/ei',
  "PZZ(\$GLOBALS['PCache'][\$pagename]['title']=PSS('$1'))");




More information about the pmwiki-users mailing list