6.4.2.17.
Enable inline editing (aka. QuickEdit)
Up one level
Adding inline editing and validation support to your view templates is as easy as calling the Archetypes widgets in view mode.
As an example, consider the following typical code from Plone 2.5:
<h1 tal:content="here/getSomeVariable" class="documentFirstHeading">
Variable goes here
</h1>
Now, to render the same thing, with an h1 tag and a class on it, you do:
<h1 class="documentFirstHeading">
<metal:field use-macro="python:here.widget('someVariable', mode='view')">
Variable goes here
</metal:field>
</h1>
This will keep whatever tags and styling you want around the item, and render the inline editing inside of it. It's also backwards compatible with earlier Plone versions — although these don't get the inline editing, obviously.
Inline Editing with error response
I think it has something to do with "portalMessage error" and a div "fieldErrorBox", ... but I cannot figure it out how it all works together.
Is there a howto somewhere?