[opencms-dev] Direct edit feature

Christian Steinert christian_steinert at web.de
Sat Jul 22 22:22:21 CEST 2006


sarthak.mishra wrote:
> 
> 
> Hi All,
> 
>          I am new for OpenCms . I want to get direct edit feature . But
> I could not find any short example of achieving direct edit feature .
> Can somebody tell me , from where I can get such example . So that I can
>  understand how to do implementation to get this feature .
> 
>  
> 
> Thanks
> 
> Sar
> 
Dear Sarthak,


you have to do two things.


1) At the beginning of your page (where you produce the header area) you
include the opencms tag library
  <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>

and inside of the HTML header you add:
<html>
  <head>
	<cms:editable />
  </head>


2) Whenever you insert content, then in you body do something like
  <body>
    <cms:include page="some_page.html" editable="true" />

  </body>
</html>




the second step is probably different for xml content, but I have not
worked with this yet. But there exists a flash-tutorial which shows how
to use xml content and it also manages to get direct edit right:

http://www.wdogsystems.com/opencms/opencms/demos/structured_content_editing.html




hope this gives you some direction

Regards
Christian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3269 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060722/6ac384f5/attachment.bin>


More information about the opencms-dev mailing list