datakurre / collective.pfg.dexterity

Dexterity PFG Adapter
2 stars 3 forks source link

Feature request: edit existing type rather than create new #8

Open petri opened 11 years ago

petri commented 11 years ago

This feature would make it easy to create nice custom content edit forms TTW using PloneFormGen.

It would require for example adding a TALES field that would return the the object to be edited.

datakurre commented 11 years ago

Would each PFG instance be configured to edit a fixed content item, or should there be a way to select the content item to be edited each time the form is opened?

Major issue would be, how to pre-fill fields from the edited content type when opening the form.

This would require a new default view for PFG to be shipped with c.pfg.dexterity. That default view would look up the edited content type, fill-in the request with default values and then call the original view to actually render the form. POST-request would be passed to the original view as such.

Might be doable.