[pmwiki-devel] UpdatePage and HandleEdit
design5 at softflow.co.uk
Tue Dec 12 15:30:05 CST 2006
Tuesday, December 12, 2006, 9:06:34 PM, Hans wrote:
> Tuesday, December 12, 2006, 8:43:02 PM, Patrick wrote:
>> 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.
> Thank you! Yes I can get it into an edit form, which is the default
> one in function HandleEdit. How can it load the custom standard
It seems that for the normal EditForm to load it needs all the special
edit form markup from forms.php. But that is only availeble for
action=edit. For fun if I comment that line in forms.php
//if ($action != 'edit') return;
then I get the normal edit form, but in triplicate, three times one
below the other.
And I don't know how to convince pmwiki that action=edit.
$action = 'edit'; in the function does not do it.
So I still have not found quite the backdoor to normal pageedit.
More information about the pmwiki-devel