[opencms-dev] Adding Custom Resource Type to Create New...

Alexander Wallace aw at avatartechnology.com
Thu Aug 11 16:05:35 CEST 2005


AFAIK there are 2 ways, one is to edit the manifest in your module and add the 
info there, that way it will go where your module goes. This involves 
exporting your module, unziping it, editing the manifest and reimporting, si 
it's a bit elaborate. The seconde way is to edit 
WEB-INF/conf/opencms-modules.xml and add the necessary stuff there (which is 
the place where opencms puts it if  found in you module's manifest)...

In both cases what you put is the same, find examples in opencms-modules.xml 
look for the section <resourcetypes>, there you would add a <type...> The 
most important thing is the name and the id (make sure they are unique, i 
start with id 1001 for example), and of course, the path to your xsd file... 
Now, for this to work and not brake opencms workarea, you need to add an 
equivalent <explorertype name="sameAsYouGaveYourType"... inside of 
<explorertypes>... Make sure the name matches that of the type or you won't 
be able to view the workplace...

Hope this helps...

On Thursday 11 August 2005 08:53 am, Kelley, Kevin wrote:
> Is there any documentation out there about adding a custom resource type
> (CaseStudyArticle) to the "Create new..." options?  It would go beneath
> the Structured Content type.
> 
> 



More information about the opencms-dev mailing list