[pmwiki-devel] UpdatePage and HandleEdit
Patrick R. Michaud
pmichaud at pobox.com
Tue Dec 12 14:43:02 CST 2006
On Tue, Dec 12, 2006 at 10:13:45AM +0000, Hans wrote:
> Tuesday, December 12, 2006, 10:02:30 AM, Dominique wrote:
>
> > but why not try to call HandleEdit yourself?
>
> well I tried that, and it just saves the new page, including the
> template text, instead of opening in 'edit'.
You can tell HandleEdit to not save the page by setting
(global) $EnablePost = 0; . Since posting is disabled,
UpdateEdit won't save the page, and HandleEdit() will then
display an edit form instead of redirecting to the new page.
Pm
More information about the pmwiki-devel
mailing list