Daniel Holth wrote:
Another plone.z3cform problem -- I am having trouble finding the minimum template that will "just work" if I setupindex = ViewTemplateForm('something.pt')
You shouldn't need to specify a template to have it "just work"; the default layout template should work (at least if you have plone.app.z3cform installed, which provides the Plone default look and feel template).
I've tried the templates from plone.z3cform to no avail. All I really want to do is to add a class to the <body> tag, which I can do (messily?) in FormWrapper.__call__ by setting template.id = "some- string".
Look at the standard templates then. They have macros you can re-use.
The other things I have not yet figured out include how to replace the default "Yes/No" for a Bool() field with a checkbox widget, and how to have widgets that provide instructions between fields without asking for any input. Any advice?
There's a widget for this in z3c.form, I think; you just need to set a custom widgetFactory. For more detailed control over text and layout, you'll need a custom template. That really should work like z3c.form so look at its docs.
Martin -- Author of `Professional Plone Development`, a book for developers who want to work with Plone. See http://martinaspeli.net/plone-book _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
