[opencms-dev] XML content type problem

Bauer.Horscht at gmx.de Bauer.Horscht at gmx.de
Wed Sep 20 13:46:32 CEST 2006


Hi,

I got two problems after adding an xml-content-type "veranstaltung" to opencms:

1) When creating a new veranstaltung, "??? fileicon.veranstaltung ???" is shown.
2) A created veranstaltung shows each context menu entry TWICE.

Here are the steps I made so far:
1) Added a type to the module de.my.site in "opencms-modules.xml":
<type class="org.opencms.file.types.CmsResourceTypeXmlContent" name="veranstaltung" id="15">
                    <properties>
                        <property>
                            <name>content-conversion</name>
                            <value type="shared"><![CDATA[cleanup;xhtml]]></value>
                        </property>
                        <property>
                            <name>template-elements</name>
                            <value type="shared"><![CDATA[/system/modules/de.my.site/jsp_bodies/detail_veranstaltung.jsp]]></value>
                        </property>
                    </properties>
                    <param name="schema">/system/modules/de.my.site/schemas/veranstaltung.xsd</param>
                </type>

2)added an explorertype to the module de.my.site in "opencms-modules.xml":
<explorertype name="veranstaltung" key="fileicon.veranstaltung" icon="article.gif" reference="xmlcontent">
                    <newresource page="structurecontent" uri="newresource_xmlcontent.jsp?newresourcetype=veranstaltung" order="57" autosetnavigation="false" autosettitle="false"/>
                    <accesscontrol>
                        <accessentry principal="GROUP.Administrators" permissions="+r+v+w+c"/>
                        <accessentry principal="GROUP.Projectmanagers" permissions="+r+v+w+c"/>
                        <accessentry principal="GROUP.Users" permissions="+r+v+w+c"/>
                    </accesscontrol>
                </explorertype>

3)added the type veranstaltung to "opencms-vfs.xml":
<type class="org.opencms.file.types.CmsResourceTypeXmlContent" name="veranstaltung" id="15">

4)Added the files workplace.properties, workplace_de.properties and workplace_en.properties to "/system/modules/de.my.site/classes/de/my/site/" and gave them the following entries:
"fileicon.veranstaltung = Veranstaltung" and
"title.veranstaltung = Create a new Veranstaltung"

Does anyone got a clue what's missing or what's wrong?
Thx in advance
bauerhorscht
-- 
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! 
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer



More information about the opencms-dev mailing list