On 2/3/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > On Sat, 3 Feb 2007, Patrick R. Michaud wrote: > > > On Sat, Feb 03, 2007 at 03:38:21PM +0100, [EMAIL PROTECTED] wrote: > >> I'd prefer to use another name for the ZAP directive (:messages:) - I > >> might want to use it for a custom directive. > >> > >> Any recommendations on what to call it instead, and how to proceed? > > > > (:messages:) is a PmWiki built-in directive (i.e., it's in the core). It > > displays the contents of the $MessagesFmt array -- e.g., in the > > EditForm. > > Great! I suspect I can then just use this instead of rolling my own. > > I looked for some documentation but it was a bit sparse :-) > > When is the (:messages:) replaced with $MessagesFmt? At a late stage?
In ZAP I just added global $MessagesFmt[]; $MessagesFmt[] = "<h5 class='wikimessage'>$[$m]</h5>"; And set my messages to $m throughout the recipe... Hope this helps... Cheers Dan _______________________________________________ pmwiki-devel mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
