[opencms-dev] Custom xmlcontent registration embedded in a module (à la templateone)

Alessandro Magnolo alessandro.magnolo at gmail.com
Mon Dec 12 17:53:39 CET 2005


I would like to register a custom xml content definition embedded in a
module (like templateone does).

I understand the old way was to edit xml files in the "config" folder
(as in http://www.opencms-forum.de/viewtopic.php?t=625 ), but now
there are traces of a smarter way to do that. This is what I found in
opencms.log:

12 dic 2005 11:24:38,490  INFO [ncms.loader.CmsResourceManager: 869] .
Resource type init   : adding 4 resource type(s) from module
"org.opencms.frontend.templateone.modules"
12 dic 2005 11:24:38,490  INFO [ncms.loader.CmsResourceManager: 808] .
Resource type init   : added resource type "news" id=30
class=org.opencms.file.types.CmsResourceTypeXmlContent
12 dic 2005 11:24:38,521  INFO [ncms.loader.CmsResourceManager: 808] .
Resource type init   : added resource type "faq" id=35
class=org.opencms.file.types.CmsResourceTypeXmlContent
12 dic 2005 11:24:38,521  INFO [ncms.loader.CmsResourceManager: 808] .
Resource type init   : added resource type "event" id=40
class=org.opencms.file.types.CmsResourceTypeXmlContent
12 dic 2005 11:24:38,521  INFO [ncms.loader.CmsResourceManager: 808] .
Resource type init   : added resource type "job" id=45
class=org.opencms.file.types.CmsResourceTypeXmlContent

However, I cannot grasp how to do that. Anybody has hints?

Thank you,
Alessandro Magnolo

p.s.: I hope this would also solve the problem of custom xmlcontent
ignored by lucene.



More information about the opencms-dev mailing list