Using Direct Edit with JSP
(JSP template direct edit control) |
|||
Line 8: | Line 8: | ||
<cms:contentload collector="${property.collector}" param="${param.dir}|${param.contentType}" editable="true"> | <cms:contentload collector="${property.collector}" param="${param.dir}|${param.contentType}" editable="true"> | ||
</cms:contentload> | </cms:contentload> | ||
+ | |||
+ | Within JSP templates you can control the direct edit feature by setting the editable attribute as follows: | ||
+ | |||
+ | <code> | ||
+ | <cms:template ifexists="<some element>"><cms:include element="<some element>" editable="<true|false>" /></cms:template> | ||
+ | </code> |
Revision as of 19:35, 16 November 2006
Caveat
If you are creating your own templates, and would like to have direct edit functionality enabled, make sure that somewhere in your jsp the direct edit javascript and css is included. You can do this by putting the following tag in your jsp:
<cms:editable/>
From that point, you can enable direct edit by setting the editable attribute on your cms:contentload to true as follows:
<cms:contentload collector="${property.collector}" param="${param.dir}|${param.contentType}" editable="true"> </cms:contentload>
Within JSP templates you can control the direct edit feature by setting the editable attribute as follows:
Invalid language.
You need to specify a language like this: <source lang="html">...</source>
Supported languages for syntax highlighting:
actionscript, ada, apache, applescript, asm, asp, autoit, bash, blitzbasic, bnf, c, c_mac, caddcl, cadlisp, cfdg, cfm, cpp, cpp-qt, csharp, css, d, delphi, diff, div, dos, eiffel, fortran, freebasic, gml, groovy, html4strict, idl, ini, inno, io, java, java5, javascript, latex, lisp, lua, matlab, mirc, mpasm, mysql, nsis, objc, ocaml, ocaml-brief, oobas, oracle8, pascal, perl, php, php-brief, plsql, python, qbasic, reg, robots, ruby, sas, scheme, sdlbasic, smalltalk, smarty, sql, tcl, text, thinbasic, tsql, vb, vbnet, vhdl, visualfoxpro, winbatch, xml, z80