[Pmwiki-users] editing tips in edit view

Patrick R. Michaud pmichaud
Tue Feb 24 11:18:09 CST 2004


On Tue, Feb 24, 2004 at 09:35:46AM -0800, Greg Morgan wrote:
> Try editing the PmWiki.EditQuickReference page.
> In the HandleEdit function there's this line:
> SDV($HandleEditFmt,array(&$PageStartFmt,
>     &$PageEditFmt,'wiki:$[PmWiki.EditQuickReference]',&$PagePreviewFmt,
>     &$PageEndFmt));
> So you can also redefine $PageEditFmt in local/config.php to change how the
> form looks... Or redefine $HandleEditFmt to change the entire edit page.
> 
> Which gives me question... Is it possible to create a template for the edit
> page?

It turns out the answer to your question is yes...one of the many
hidden features of PmWiki.  :-)

Just create a section in the template beginning with <!--PageEditFmt-->.
It won't be displayed in normal pages, but it does set the value of 
$PageEditFmt and gets displayed whenever the edit page function is called 
(as per $HandleEditFmt above).  The <!--PageEditFmt--> section can
go anywhere in the template, but I think it's probably best placed at
the bottom.

Pm

P.S.: The reason many features like this are "hidden" is not due to some
diabolical master plan on my part or a desire to keep them hidden, but 
only because (1) I program very generically so as to not limit the things
that can be done and (2) I haven't always figured out where/how to
document every little thing that can possibly be done with PmWiki.  :-)




More information about the pmwiki-users mailing list