<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV> </DIV><DIV>Thanks for your answer</DIV><DIV>I already tried this way .. I have retried .. and unfortunatly, I did not get the Direct Edit Button ...</DIV><DIV>I really don't understand .. is there any known issue for OpenCms 7.5.3 at this level ??</DIV><DIV><BR><DIV>Olivier <BR><FONT color=#990099>-----opencms-dev-bounces@opencms.org a écrit : -----<BR><BR></FONT><BLOCKQUOTE style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">Pour : The OpenCms mailing list <opencms-dev@opencms.org><BR>De : Michael Emmerich <emmerich@german-navy.de><BR>Envoyé par : opencms-dev-bounces@opencms.org<BR>Date : 11/09/2010 10:41<BR>Objet : Re: [opencms-dev] Direct Edit does not work ...<BR><BR><FONT size=2 face="Default Monospace,Courier New,Courier,monospace">Olivier,<BR><BR>a simple template with direct edit would look like this:<BR><BR><html><BR><head><BR><title><cms:property name="title" escapeHtml="true" /></title><BR><cms:editable /><BR></head><BR><body><BR><BR><h2>My first template head</h2><BR><BR><!-- Main page body starts here --><BR><cms:include element="body" editable="true"/><BR><BR><!-- Main page body ends here --><BR><BR><h2>My first template foot</h2><BR><BR></body><BR></html><BR><BR><BR>I would always suggest to use the taglib and not scriplet code, your <BR>templates/jsos will be much easier to maintain.<BR><BR>You might take a look in the alkacon documentation mudules as well, <BR>there is a basic template-how to in it.<BR><BR>Kind regards,<BR>Michael<BR><BR>> Hi all,<BR>> I did not use OpenCms for 2 years and I think I forgot sthg...<BR>> In a context where I have multiple site,<BR>> I would like to use the Direct Edit feature on a page (xmlpage) called<BR>> index.html<BR>> I coded a micro-template just to test and unfortunatly, even if I am<BR>> logged / offline and in the right siteRoot ... I never get the Direct<BR>> Edit button.<BR>> Is somebody can help me ?<BR>> here is the code of the template (.. basic ..)<BR>><BR>> <%@ page import="java.util.*,org.opencms.file.*,org.opencms.jsp.*"<BR>> buffer="none" session="false"%><BR>> <%<BR>> // create a JSP action element<BR>> CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,<BR>> response);<BR>><BR>> // get own uri<BR>> String uri = cms.getRequestContext().getUri();<BR>> %><BR>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<BR>> "<A href="http://www.w3.org/TR/html4/strict.dtd" target=blank>http://www.w3.org/TR/html4/strict.dtd</A>"><BR>> <html><BR>> <head><BR>> <title>Demo page with 1 element</title><BR>> </head><BR>> <body><BR>> <h2>Demo</h2><BR>> <p><!-- Editable body<BR>> element --> <%<BR>><BR>> CmsObject cmsObject = cms.getCmsObject();<BR>> cmsObject.loginUser("Admin", "admin");<BR>> CmsProject cmsproject = cmsObject.readProject("Offline");<BR>> cmsObject.getRequestContext().setCurrentProject(cmsproject);<BR>> cmsObject.getRequestContext().setSiteRoot("/sites/default/");<BR>> // include editable element from the URI<BR>> cms.include(uri, "body", true);<BR>><BR>><BR>> %> <!-- /Editable body element --></p><BR>> </body><BR>> </html><BR>><BR>><BR>> Olivier<BR>> Ce message est à l'attention exclusive des destinataires désignés. Il<BR>> peut contenir des informations confidentielles. Si vous n'êtes pas<BR>> destinataire du message, merci d'en avertir immédiatement l'expéditeur<BR>> et de détruire ce message. Le contenu de ce message ne pourrait engager<BR>> la responsabilité de Steria que s'il a été émis par une personne dûment<BR>> habilitée agissant dans le strict cadre de ses fonctions et à des fins<BR>> non étrangères à ses attributions. Bien que les meilleurs efforts soient<BR>> faits pour maintenir cette transmission exempte de tout virus,<BR>> l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité<BR>> ne saurait être engagée pour tout dommage résultant d'un virus transmis.<BR>> This message is intended exclusively for the designated addressee. It<BR>> may contain confidential material. If you are not the correct addressee,<BR>> please notify the sender immediately and destroy the message. The<BR>> content of this message will engage the responsibility of Steria only if<BR>> it has been sent by an authorized person acting in the strict scope of<BR>> his functions and for purposes that are related to his competence.<BR>> Although reasonable efforts have been made to keep this transmission<BR>> free from viruses, the sender will not be liable for damages caused by a<BR>> transmitted virus.<BR>><BR>><BR>><BR>><BR>> _______________________________________________<BR>> This mail is sent to you from the opencms-dev mailing list<BR>> To change your list options, or to unsubscribe from the list, please visit<BR>> <A href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target=blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A><BR><BR><BR>_______________________________________________<BR>This mail is sent to you from the opencms-dev mailing list<BR>To change your list options, or to unsubscribe from the list, please visit<BR><A href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target=blank>http://lists.opencms.org/mailman/listinfo/opencms-dev</A></FONT></BLOCKQUOTE><BR></DIV></DIV></FONT><font face="sans-serif"><html>
<head>
<meta http-equiv="content-type">
</head>
<body>
<font size="1" face="Default Sans Serif">
Ce message est à l'attention exclusive des destinataires désignés. Il peut contenir des informations confidentielles. Si vous n'êtes pas destinataire du message, merci d'en avertir immédiatement l'expéditeur et de détruire ce message. Le contenu de ce message ne pourrait engager la responsabilité de Steria que s'il a été émis par une personne dûment habilitée agissant dans le strict cadre de ses fonctions et à des fins non étrangères à ses attributions. Bien que les meilleurs efforts soient faits pour maintenir cette transmission exempte de tout virus, l'expéditeur ne donne aucune garantie à cet égard et sa responsabilité ne saurait être engagée pour tout dommage résultant d'un virus transmis.
<br />
This message is intended exclusively for the designated addressee. It may contain confidential material. If you are not the correct addressee, please notify the sender immediately and destroy the message. The content of this message will engage the responsibility of Steria only if it has been sent by an authorized person acting in the strict scope of his functions and for purposes that are related to his competence. Although reasonable efforts have been made to keep this transmission free from viruses, the sender will not be liable for damages caused by a transmitted virus.
</font>
</body>
</html></font>