[pmwiki-users] EnableDrafts and PmForm

Criss Ittermann crisses at kinhost.org
Wed Nov 19 07:44:12 CST 2014

I updated forms.php and drafts.php from svn.

I changed the button-end of my profile PmForm to:

(:input submit post Save:)
(:if auth admin:)
(:input submit postdraft "Save draft":)
(:input hidden postdraft 1:)
(:input end:)

Per the emailed instructions.

When I'm logged in as admin, "Save" and "Save Draft" both save to the Profile's Data (_and_ Draft) page.

Same when logged in as non-admin, only there's just one "Save" button.

So it's creating/updating both, populated with the same data.

By manually changing the -Draft, I can tell the form is correctly pre-populating from the Draft page.

Thank you for the new feature (in progress)!

Criss Ittermann
Business Coach, Eclectic Tech LLC


On Nov 13, 2014, at 4:05 PM, Petko Yotov <5ko at 5ko.fr> wrote:

> On 12.11.2014 19:56, Petko Yotov wrote:
>> To be clear, only the posting and saving to a draft page can be
>> configured. Opening a PmForm on an existing page will display the data
>> from the real page, not from an existing draft page.
> Well, I committed to Subversion a change that would allow to define more than one source= pages in input default. One could write:
>  (:input default source={*$FullName}-Draft,{*$FullName}:)
> Then the values will be taken from the first page which exists and for which the user has read permissions.
> This needs testing so please get the forms.php file, test the feature and report any problems.
> Petko
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20141119/fb7ff2aa/attachment.html>

More information about the pmwiki-users mailing list