[pmwiki-users] PTVs as forum or blog post container

Hans design5 at softflow.co.uk
Wed May 23 12:38:22 CDT 2007


Wednesday, May 23, 2007, 2:57:17 PM, Patrick R. Michaud wrote:

> But honestly, $PageTextVarPatterns is configurable, so a recipe
> is completely free to come up with whatever PTV syntax it wants
> to use.

Thanks! Working well now by adding a pattern:

# invisible (::textvar:...::) markup
Markup('textvar::', '<split',
  '/\\(::\\w[-\\w]*:(?!\\)).*?::\\)/s', '');

# add new PTV pattern for text PTV (::var:...::)
$PageTextVarPatterns['(::var:...::)'] = '/(\\(:: *(\\w[-\\w]*) *:(?!\\))\\s?)(.*?)(::\\))/s';


  ~Hans




More information about the pmwiki-users mailing list