Hi Michael!<br>
<br>
Thank you so much for your quick response. I am sorry not
to have thanked you before, but I wanted to try and get the full idea
working before. While I was writing to you for further help for a last
detail I found the final solution, so I'll post what I did:<br>
<br>
In a file where you get after clicking the admin tool icon you want
that sends the "resource" parameter with the resource name to edit, you
should write:<br>
<br>
<%<br>
String editor = "/system/workplace/editors/editor.jsp"; <----- if I
use "getEditorUri" it doesn't work properly (don't ask me why)<br>
String backlink = intermediate_jsp;<br>
String resource = the_resource_to_edit;<br>
%><br>
Response.Write("<script>window.open( "<%= editor
%>?<%= CmsEditor.PARAM_RESOURCE %>=<%= resource %>&<%=
CmsEditor.PARAM_BACKLINK %>=<%= backlink %>&<%=
CmsEditor.PARAM_DIRECTEDIT %>=true","_top");</script>")<br>
<br>The intermediate jsp I mention as backlink is nothing but a copy of
"/system/workplace/views/workplace.jsp" where you fix the root of the
body page to load the page to redirect back to, more precisely to the
right admin jsp with the "path" parameter correctly set. That is,
inside "cms.link" you write
"/system/workplace/views/admin/admin-fs.jsp?path=path_to_admin_tool",
where path_to_admin_tool is correctly set in the file system.<br>
<br>
Thank you very much for your help and I hope this helps someone else. Greetings,<br>
<br>
Nacho.<br><br><div><span class="gmail_quote">On 5/8/06, <b class="gmail_sendername">Michael Moossen</b> <<a href="mailto:m.moossen@alkacon.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">m.moossen@alkacon.com
</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi, Nacho!<br><br>that is 'almost' the right approach!<br>the point is that the editor only works unframed, so you have to load it into<br>the top frame. CmsToolManager#jspForwardPage is unable to do that.<br><br>one idea is to forward to an intermediate html/jsp file, to load the editor in
<br>the top frame.<br><br>Kind Regards,<br>Michael<br><br>-------------------<br>Michael Moossen<br><br>Alkacon Software GmbH - The OpenCms Experts<br><a href="http://www.alkacon.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.alkacon.com</a> - <a href="http://www.opencms.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://www.opencms.org</a><br><br><br><br><br>Quoting Nacho Fernandez <<a href="mailto:snatcho@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">snatcho@gmail.com</a>>:<br><br>> Hi all!
<br>><br>> I would be very grateful if someone could help me to open the xml editor
<br>> from a link in the administration view to correctly edit a xml content. But<br>> now I have managed to open the editor with the correct data, but any button<br>> pushing leads nowhere (be it close, save or save and exit). What I've done
<br>> so far is building an administration page and add a link that executes the<br>> following code:<br>><br>> params.put( CmsEditor.PARAM_RESOURCE, resource_name );<br>> String editor = new CmsEditorHandler().getEditorUri( resource_name, getJsp()
<br>> );<br>> getToolManager().jspForwardPage(this, editor, params);<br>><br>> The variable "resource_name" contains the url to the resource to edit, and<br>> it's working because the content gets correctly loaded.
<br>><br>> I've tried several combinations of parameters added (PARAM_BACKLINK,<br>> PARAM_ACTION and the like) but none gets the desired result. Most likely I'm<br>> getting the wrong approach. Can someone please help me? (to me this solution
<br>> is basic for building admin subsections for content listing/editing and<br>> probably of good use to others as well). Thanks in advance.<br>><br>> snatcho.<br>><br><br><br>----------------------------------------------------------------
<br>This message was sent using IMP, the Internet Messaging Program.<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" onclick="return top.js.OpenExtLink(window,event,this)">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></div><br>