[pmwiki-users] PreviewChanges: Show only on demand?
Oliver Betz
list_ob at gmx.net
Mon Feb 10 13:01:41 CST 2014
>Will it work by simply adding the form element to the EditForm?
the following quick hack seems to work:
Add
(:input submit preview PreviewDiff:)
to the form, and
if(@$_REQUEST['preview']=='PreviewDiff')
include_once("$FarmD/cookbook/previewchanges.php");
to config.php. I didn't investigate the difference between the
standard form button and the e_... buttons, and I'm not sure whether
that's a clean approach.
Oliver
--
Oliver Betz, Munich http://oliverbetz.de/
More information about the pmwiki-users
mailing list