Hi,  Just a reminder, and clarification if it isn't clear:  

this partly works:
a -Draft is created.
the webpage DOES pre-populate with -Draft data over the original page data.
The unprivileged editor only sees 1 button, as desired.

However the buttons behave identically, updating both the normal page AND draft 
page  whether submitted as admin or as unprivileged editor.  So the buttons 
behave exactly the same and update both pages.

Crisses


> On Nov 19, 2014, at 8:44 AM, Criss Ittermann <cris...@kinhost.org> wrote:
> 
> 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":)
> (:else:)
> (:input hidden postdraft 1:)
> (:if:)
> (:input end:)
> [[#profileformend]]
> 
> 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
> 
> http://EclecticTech.net/Events/ <http://eclectictech.net/Events/>
> 845-820-0262
> 
> On Nov 13, 2014, at 4:05 PM, Petko Yotov <5...@5ko.fr <mailto:5...@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@pmichaud.com <mailto:pmwiki-users@pmichaud.com>
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> 

_______________________________________________
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users

Reply via email to