Enable inline editing (aka. QuickEdit)

by Alexander Limi last modified Dec 30, 2008 03:07 PM

Once you have your product updated, you might want to add support for inline editing of your type. Fortunately, this is very easy.

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::

Variable goes here

Now, to render the same thing, with an h1 tag and a class on it, you do::

Variable goes here

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.