[opencms-dev] XML content type problem

Jonathan Woods jonathan.woods at scintillance.com
Wed Sep 20 14:43:41 CEST 2006


Just a couple of ideas:

1.  Are you sure your id value (15) is unique?  I'm not sure which context
menu you're talking about, but that might explain it.

2.  The article.gif icon should be copied to
/system/workplace/resources/filetypes.

Jon 

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Bauer.Horscht at gmx.de
Sent: 20 September 2006 12:47
To: opencms-dev at opencms.org
Subject: [opencms-dev] XML content type problem

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_veransta
ltung.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

_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your
list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev





More information about the opencms-dev mailing list