[pmwiki-users] Wiki trail in template header and footer

Patrick R. Michaud pmichaud at pobox.com
Sun Dec 11 12:55:12 CST 2005


On Sun, Dec 11, 2005 at 12:37:04PM -0500, DaveG wrote:
> I know how to create a markup rule. That part I'm not sure about is 
> creating a variable that can be referenced in the template. I imagine 
> it's something like:
> Markup('^trail:', 'directives', '/^trail:(.*?)$/', '$TrailSource="$1";');
> That would allow someone to enter: "trail: Group/Pagename". And then 
> simply reference $TrailSource in the tmpl file. Close?

Close.  It's actually:

  Markup('^trail:', 'directives',
    '/^trail:(.*)/e',
    "\$GLOBALS['TrailSource']='$1'");

Pm




More information about the pmwiki-users mailing list