<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV>In fact it was a javascript error, I changed the direct edit provider to text instead of button (and I also added some stuff in the CSS)</DIV><DIV> </DIV><DIV>Thank you very much !</DIV><DIV> </DIV><DIV>Now, I have another problem with an "already included earlier" exception while trying to view the offline version of the page ..</DIV><DIV> </DIV><DIV>Somebody has any clues ?</DIV><DIV> </DIV><DIV>Cheers !</DIV><DIV> </DIV><DIV><BR> </DIV><DIV>Olivier CAMUS<BR><BR>Steria <BR>2 rue de la Faisanderie<BR>BP 95 - Lingolsheim<BR>F-67380 Strasbourg<BR><BR>Tel : +33 3 90 20 77 52<BR>Mobile: +33 6 32 97 22 32<BR><A href="mailto:olivier.camus@steria.fr" target=blank>olivier.camus@steria.fr</A><BR><A href="http://www.steria.fr/" target=blank>www.steria.fr</A><BR><BR>Afin de contribuer au respect de l'environnement, merci de n'imprimer ce courriel que si nécessaire<BR><DIV><BR></DIV><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 11:20<BR>Objet : Re: [opencms-dev] Réf. : Re: Direct Edit does not work ...<BR><BR><FONT size=2 face="Default Monospace,Courier New,Courier,monospace">Olivier,<BR><BR>check if you have some java script errors. Maybe some browser settings <BR>prevent the js to load.<BR><BR>And of course, you have to be in an offline project, the direct edit <BR>buttons do not appear when you are in the online project.<BR><BR>Kind regards,<BR>Michael<BR><BR>> Thanks for your answer<BR>> I already tried this way .. I have retried .. and unfortunatly, I did<BR>> not get the Direct Edit Button ...<BR>> I really don't understand .. is there any known issue for OpenCms 7.5.3<BR>> at this level ??<BR>><BR>> Olivier<BR>> -----opencms-dev-bounces@opencms.org a écrit : -----<BR>><BR>> 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>> 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)<BR>> 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,<BR>> 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<BR>> l'expéditeur<BR>> > et de détruire ce message. Le contenu de ce message ne pourrait<BR>> engager<BR>> > la responsabilité de Steria que s'il a été émis par une personne<BR>> dûment<BR>> > habilitée agissant dans le strict cadre de ses fonctions et à des<BR>> fins<BR>> > non étrangères à ses attributions. Bien que les meilleurs efforts<BR>> soient<BR>> > faits pour maintenir cette transmission exempte de tout virus,<BR>> > l'expéditeur ne donne aucune garantie à cet égard et sa<BR>> responsabilité<BR>> > ne saurait être engagée pour tout dommage résultant d'un virus<BR>> transmis.<BR>> > This message is intended exclusively for the designated addressee. It<BR>> > may contain confidential material. If you are not the correct<BR>> addressee,<BR>> > please notify the sender immediately and destroy the message. The<BR>> > content of this message will engage the responsibility of Steria<BR>> only if<BR>> > it has been sent by an authorized person acting in the strict<BR>> 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<BR>> 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,<BR>> 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<BR>> 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>> 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></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>