<br><font size=2 face="sans-serif">In the end I've found a workaround.</font>
<br><font size=2 face="sans-serif">The idea is to avoid the automatic "order
by name" when handling elements.</font>
<br><font size=2 face="sans-serif">To achieve this:</font>
<br>
<br><font size=2 face="sans-serif">1) Download source code of OpenCms 7</font>
<br><font size=2 face="sans-serif">2) Set up an Eclipse project</font>
<br><font size=2 face="sans-serif">3) Comment out the line "Collections.sort(result);"
in "computeElements" method, inside "CmsDialogElements.java".</font>
<br><font size=2 face="sans-serif">4) Substitute the new compiled class
inside you opencms.jar file located in WEB-INF/lib</font>
<br><font size=2 face="sans-serif">5) Restart tomcat</font>
<br>
<br><font size=2 face="sans-serif">By now this workaround is working on
my system.</font>
<br>
<br><font size=2 face="sans-serif">Marco</font>
<br>
<br>
<br>
<br><font size=2><tt>opencms-dev-bounces@opencms.org scritti il 30/07/2008
16.44.39<br>
<br>
> <br>
> Hi, <br>
> I'd like to know if it's possible to set an edit order (or at least
<br>
> a default) for the elements defined inside my custom body. <br>
> It seems the elements are shown in WYSIWYG editor in alphabetical
<br>
> order;  I'd change this without having to rename all the elements
ofmy pages.<br>
> I've tried to take a look at the xsd schema here: "http://www.<br>
> opencms.org/dtd/6.0/xmlpage.xsd" but the link seems to be broken.<br>
> <br>
> This is my custom body and "body_fi" is always shown first,
no <br>
> matter the definition order. <br>
> How can I get  "body_it" as first/default element?
<br>
> <br>
> <?xml version="1.0" encoding="UTF-8"?> <br>
> <pages xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:<br>
> noNamespaceSchemaLocation="http://www.opencms.org/dtd/6.0/xmlpage.xsd">
<br>
>   <page language="en"> <br>
>     <element name="body_it" default="true">
<br>
>       <links/> <br>
>       <content><![CDATA[]]></content>
<br>
>     </element> <br>
>     <element name="body_fi"> <br>
>       <links/> <br>
>       <content><![CDATA[]]></content>
<br>
>     </element> <br>
>   </page> <br>
> </pages> <br>
> <br>
> <br>
> Thanks, <br>
> Marco<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>
> http://lists.opencms.org/mailman/listinfo/opencms-dev</tt></font>