<< Back - Alkacon logo

OpenCms 6.0 interactive documentation:

Documentation for the editable() method

OpenCms logo - Forward >>

The editable() method

This method includes direct edit scriptlets, nescessary to use the direct edit feature for page elements.

It must be set inside the HTML head to use the "editable" paramter  in the include method for page elements.

In the generated HTML page, the tag is replaced by the JavaScript code, nescessary for direct editing.

Parameters:

Name Description
java.lang.boolean isEditable Includes the direct edit scriptlet only if set to "true".

Example usage:

Include the direct edit scriptlet.

org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response);

cms.editable(true);

©2003-2005 Alkacon Software (http://www.alkacon.com) - The OpenCms experts