Search code examples
pythonplonearchetypes

How do I render an Archetypes widget in 'edit' mode in a BrowserView?


I would like to render Plone Archetypes widgets in 'edit' mode in a Products.Five.browser.BrowserView but it seems there is a lot of setup for templates in skins layers that is absent from BrowserView. How do I perform equivalent setup in a BrowserView?

The resulting form needs to POST to the existing Archetypes logic.


Solution

  • The best answer to this question as @david-glick and @stevem suggest is: don't do it. If you are going to use AT (Archetypes), use AT best practices; the closest of which are explained here:

    Also as @stevem suggests, you can manually code forms in browser views if you are so inclined (but you'll need to do all the validation yourself).