[pmwiki-users] Outputting HTML code in a cookbook module
Crisses
crisses at kinhost.org
Mon Oct 16 06:10:48 CDT 2006
On Oct 16, 2006, at 6:04 AM, Wouter Groeneveld wrote:
> Hello,
>
>
> I would like to output HTML code instead of the pmWiki markup in my
> own cookbook recipe - a file placed in the /cookbook subdir.
>
> Function aFunct($pagename) {
>
> $out = "<form><select>...";
> return $out;
> }
>
> This causes pmWiki to set <pre> and </pre> tags between the $out
> text. Result: my form placing is screwed up. How can I output HTML
> - without pmwiki's anti-HTML processing functions? I honestly have
> no idea. Normally, $out contains something like "!! hello \\
> newline" - the default markup, but I'd like to output a form
> combobox without the nasty <pre> tags.
I'm not 100% sure what you're looking to do, but you may want to look
into the PmWiki function Keep() which takes HTML markup for output --
you may also want to write to pages using the UpdatePage() pmwiki
function, which allows you to add PmWiki markup to a page from a
recipe while still calculating diffs, updating recent changes pages,
etc.
The point at which you're looking to output a full form in HTML you
probably want to use UpdatePage(). I documented this function for
cookbook authors on:
http://www.pmwiki.org/wiki/Cookbook/DebuggingForCookbookAuthors
Crisses
More information about the pmwiki-users
mailing list