[pmwiki-devel] ZAP - the directive (:messages:)
editor at fast.st
Sat Feb 3 20:42:39 CST 2007
On 2/3/07, christian.ridderstrom at gmail.com
<christian.ridderstrom at gmail.com> wrote:
> On Sat, 3 Feb 2007, Patrick R. Michaud wrote:
> > On Sat, Feb 03, 2007 at 03:38:21PM +0100, christian.ridderstrom at gmail.com 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
$MessagesFmt = "<h5 class='wikimessage'>$[$m]</h5>";
And set my messages to $m throughout the recipe...
Hope this helps...
More information about the pmwiki-devel