<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
hello.<br>
<br>
I think everybody knows this tutorial
<a class="moz-txt-link-freetext" href="http://mvnforum.synyx.de/opencms-forum/viewthread?thread=625#1739">http://mvnforum.synyx.de/opencms-forum/viewthread?thread=625#1739</a><br>
unfortunately it's deprecated.<br>
there are NO definitions in the opencms-vfs.xml or the
opencms-workplace.xml to get the opencms load my own structured content
at start.<br>
it's all now placed in the opencms-modules.xml<br>
my question: where do I have to put in this code into the
opencms-modules.xml? in my module? or in the module where "the other"
structured contents are placed?<br>
<br>
<pre>8. Add own resource type and workplace context menu
Last thing to do is to add an own resource type for you new content. Check
out the "opencms-vfs.xml" in the WEB-INF/config folder. There you should
find the node for the "article" content. Duplicate this node for your
"myarticle". You also see that it points to the location of the schema. You
also must give your type a new number. This may look like this:
<font color="#ff0000"><type class="org.opencms.file.types.CmsResourceTypeXmlContent">
<param name="resource.type.id">13</param>
<param name="resource.type.name">myarticle</param>
<param name="schema">/sites/default/myfolder/myarticle.xsd</param>
</type> </font>
Then add the context menu, which is done in "opencms-workplace.xml", and it
may look like this:
<font color="#ff0000"><explorertype name="myarticle" key="fileicon.myarticle" icon="myarticle.gif"
reference="xmlcontent">
<newresource
uri="newresource_xmlcontent.jsp?newresourcetype=myarticle" order="25"/>
</explorertype> </font>
Note that the "key" refers to a localization entry, so this must be located
in a workplace property file (see 7). The image "myarticle.gif" must be
located in "/system/workplace/resources/filetypes/".
You need to restart OpenCms after these changes are made. After this, you
should be able to create a new "myarticle" type with the "new" function in
the workplace.
</pre>
greedings Volkmar<br>
</body>
</html>