Installs dexterity content creation adapter for PloneFormGen
Project description
Dexterity PFG Adapter
This product installs a custom PloneFormGen adapter for creating new dexterity content objects from PloneFormGen form submissions.
Dexterity content types must be defined by other packages or be created using the dexterity schema editor, but otherwise the installed Content Adapter can be used as a part of existing PloneFormGen adapter chains.
Also Content Adapters can be chained: the first adapter can be used to create a folder and selecting the adapter as a target folder for the next adapter, it will try to create content below that newly created folder.
When the form is published, also visitors may create content by submitting it.
By default the content is created using the permissions of the owner of the Content Adapter object, but there’s an option to allow logged-in form submitter to own the content after creation.
This product could be used with other known packages to create a more complete through-the-web -experience on Plone. For example:
Create a new custom submission content type through-the-web using plone.app.dexterity.
Create a custom tracker workflow for it using plone.app.workflowmanager.
Create a custom submission form using PloneFormGen and this adapter.
…
Profit.
This product may not yet support all of the PloneFormGen’s or Dexterity’s fields. If you like the idea and think this could be useful, please, contribute at: https://github.com/datakurre/collective.pfg.dexterity
On Plone 4: If your target folder is Dexterity based folder, don’t forget to add the IReferencableBehavior to that type in the control panel.
P.S. If you find it redundant to first create a PloneFormGen-form and then define a similar dexterity content type, check out if uwosh.pfg.d2c is a better fit for you.
Changelog
1.0.0rc1 (2016-08-29)
Add support for Plone 5 [datakurre]
Fix field population heuristics to try z3c.form widget adaptation at first and direct assignment only the (previously was the opposite) [datakurre]
0.10.1 (2014-07-01)
Fix to translate also list with strings to unicode [Asko Soukka]
Add automatic value adaptation from single value list to Choice field [Asko Soukka]
0.10.0 (2014-06-27)
Display field ids for TTW fields, which do not have translations [Asko Soukka]
Add trivial transforms for strings to sets and lists for better vocabulary field support [Asko Soukka]
Add error classes to error messages to ease debugging type mismatch errors [Asko Soukka]
0.9.1 (2014-06-27)
Fix issue where content deletion fails (after a submission error), because content is not even added to a container yet [Asko Soukka]
0.9.0 (2013-12-15)
Fix to add created content into container only after its fields have been filled (to support custom id adapters) [Asko Soukka]
0.8.0 (2013-09-02)
Fix to use p.dexterity.utils.getAdditionalSchemata to read behavior based schemas [Asko Soukka]
Remove <includeDependencies /> [Asko Soukka]
Remove implicit dependency on plone.directives.form [Asko Soukka]
0.7.0 (2013-08-31)
Fix to allow limit target folder by base folderish interfaces instead of portal_type [fixes #6] [Asko Soukka]
0.6.0 (2012-09-16)
Support coercing of PFG DateTime fields to zope.schema.Date (ajung)
0.5.0 (2012-01-20)
Added (hidden) support for adapter chaining to allow creation of hierarchical structures.
0.4.0 (2012-01-18)
Refactored to masquerade as an owner of the adapter while creating content.
Added option to make logged-in submitter the owner of the created content.
Added option to save the URL of the created content onto request, for example, to be shown on a thanks page.
0.3.0 (2011-09-09)
Updated heuristics in adapting PFG values for zope.schema. More field combinations should work now.
0.2.3 (2011-09-07)
Added French translation (bklups).
0.2.2 (2011-09-06)
Fixed broken package.
0.2.1 (2011-09-05)
Uses z3c.form adapters to convert data from request to field value.
0.1.0 (2011-08-28)
Proof of concept
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.pfg.dexterity-1.0.0rc1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9fdaa92046dda2034811f705f2a7430fcddf15128d57655542f568322b23770 |
|
MD5 | ff653b6f54d50396571925f47e246b41 |
|
BLAKE2b-256 | 9cac25311af3825705983fd7e06dba08ea45c268370a6f760bda84191a7dd074 |