[z3-five] Formlib and genuine add forms in Plone

Dennis Schulz d.schulz81 at gmx.net
Tue Oct 17 18:42:15 CEST 2006


Hi,

I am currently learning how to do a content type with Formlib ( Five
1.4.1, Zope 2.9.5 and Plone 2.5.1 ) that should contain a genuine add 
form, that means that the item is not created before entering any value 
like in Archtypes (without portal factory).

http://plone.org/documentation/tutorial/using-zope-formlib-with-plone/formlib-and-content-types

I worked through this example. In the end the author states that "The
only main missing piece (from formlib's perspective) here is using an
auto-generated add form. While we can build those, they can't easily be
hooked into Plone as Plone feels it needs to create the content first
before displaying any forms."

How would it be if we don't use the Archetypes BaseContent class to
build the ContentType (like in the tutorial), but the OFS.SimpleItem
(there is an example in formlib/tests directory)?

Would it be possible to auto generate a working add form? Are there any
examples where it actually really works? I have looked at a few examples 
now and everybody makes it a litte bit different..... does it make sense 
to build upon Archetypes BaseContent or not?

How do you make Content Types?


Greetings Dennis





More information about the z3-five mailing list