Personal tools
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

6.4.2.17. Enable inline editing (aka. QuickEdit)

Up one level
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:

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

by limi — last modified October 5, 2007 - 19:07
Contributors: Martin Aspeli, Geir Bækholt, Sisi Nutt
All content is copyright Plone Foundation and the individual contributors.

Inline Editing with error response

Posted by Florian Lagg at June 28, 2008 - 07:48
Inline editing is working. Anyhow I cannot get the messages from my validators back to the user.
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?

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by