Thanks for your reply Graeme Kidd.<br>I thought that it could be more simple, only changing configuration files, not extending classes.<br><br>I would try to explain my problem in detail:<br>I have a site with a folder per language: en and es.<br>
I need to add and edit resources with direct edit.<br>When I show a list of resources with direct edit enabled, the resource added using the add button of direct edit, is only saved in a folder, so in the other languaje is not avaliable.<br>
<br>To solve this I create a list.jsp that always show resources of the same folder (/en/news/) and make a sibling (of list.jsp ) in each languaje folder. In this way I can add reources using direct edit and are avaliables in all languajes.<br>
<br>The problem is when I try to show details of each resource, beacuse the resource is only in /en folder and if I want to see it from /es folder the locale is changed.<br><br>To solve this I create a detail.jsp that receive a parameter with the resource name I want to see, and I make a sibling in each language folder (of detail.jsp) but I have the related previous problem.<br>
<br>Is there a standart way to add, edit new resources from direct edit in sites with a folder per language.<br><br>Thanks.<br><br><br><div class="gmail_quote">2010/6/25 Graeme Kidd <span dir="ltr"><<a href="mailto:coolkidd3@hotmail.com">coolkidd3@hotmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
<br>
<br>
To configure that part you might want to extend the CmsDirectEditJQueryProvider class and override the appendDirectEditData() method. You can then specify your new class in the opencms-workplace.xml file by editing the 'directeditprovider' XML node.<br>
<br>
________________________________<br>
> Date: Fri, 25 Jun 2010 09:11:27 +0200<br>
> From: <a href="mailto:tonhinbm@gmail.com">tonhinbm@gmail.com</a><br>
> To: <a href="mailto:opencms-dev@opencms.org">opencms-dev@opencms.org</a><br>
> Subject: [opencms-dev] Fckeditor from direct edit: closelink parameter<br>
<div><div></div><div class="h5">><br>
> Hi.<br>
> Someone know how can I configure closelink and backlink parameters of fckeditor from direct edit?<br>
><br>
> I have a .jsp that receive a parameter that is the name of the resource I want to show: detail.jsp?product=0001.html<br>
><br>
> This jsp show the content of 0001.html resource.<br>
><br>
> When I try to direct edit de resource, fckeditor show me the resource fine, but when I press save or close buttons it redirect to detail.jsp without the parameter product=0001.html, so it doesn't show the resource.<br>
><br>
><br>
> This is url of fckeditor close button:<br>
> <a href="http://localhost:8080/opencms/opencms/system/workplace/editors/xmlcontent/editor_buttons.jsp" target="_blank">http://localhost:8080/opencms/opencms/system/workplace/editors/xmlcontent/editor_buttons.jsp</a>?<br>
><br>
> action=show<br>
> &elementlanguage=es<br>
> &editortitle=<br>
> &backlink=%2Fdetail.jsp<br>
> &resource=%2F0001.html<br>
> &deletelink=%2Fopencms%2Fopencms%2Fsystem%2Fworkplace%2Fcommons%2Fdelete.jsp<br>
> &closelink=%2Fdetail.jsp<br>
><br>
> &redirect=true<br>
> &directedit=true<br>
> &elementname=null<br>
> &newlink=#<br>
><br>
> Thanks.<br>
><br>
<br>
</div></div>_________________________________________________________________<br>
<a href="http://clk.atdmt.com/UKM/go/197222280/direct/01/" target="_blank">http://clk.atdmt.com/UKM/go/197222280/direct/01/</a><br>
Do you have a story that started on Hotmail? Tell us now<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>
</blockquote></div><br>