[opencms-dev] how to add XML content type to workplace menu?
Jonathan Woods
jonathan.woods at scintillance.com
Wed Mar 29 21:56:00 CEST 2006
Matthew -
If only OpenCms had a single configuration registry, with an open Java API
and an XML serialisation... it would remove at a stroke most of the postings
to this list.
You should add stuff for your own modules in opencms-modules.xml. The
<explorertype> nodes etc. in there are 'the same' as in opencms-vfs.xml
etc., but opencms-modules.xml is meant to be the place where
module-oriented, non-core configuration resides. opencms-modules.xml is
created initially during an OpenCms installation, then read subsequently on
each start-up; it may be modified by Workplace module administration, and
you can write to it during your own development too. You'll need to watch
out for the order in which things are done, though, so that your changes to
opencms-modules.xml don't overwrite those made by the system, and vice
versa. There was a recent thread on this topic - look for subject
"opencms-modules.xml gets replaced by old version", with posts by me and by
Christian Steinert.
manifest.xml is created by OpenCms when you export a module. I wish there
were some documentation about its contents, because then I could construct
it automatically from Eclipse/Ant... but the best I can suggest is that you
develop your own module by creating resources under /system/modules/<module
name> and configuring opencms-modules.xml etc, then once development is
nearly complete you can get OpenCms to generate a complete module export
which can later be inserted into an OpenCms installation.
Jon
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Matthew Fremont
Sent: 29 March 2006 17:31
To: opencms-dev at opencms.org
Subject: [opencms-dev] how to add XML content type to workplace menu?
I've read a couple of emails from the archive which suggest that to add a
new XML content type to the workplace structured content menu it is
necessary to add type and explorertype definitions to opencms-modules.xml
I've noticed that opencms-vfs.xml also contains type definitions and
opencms-workplace.xml contains explorertype definitions.
Which is the more appropriate place for these definitions:
opencms-modules.xml or opencms-vfs.xml and opencms-workplace.xml?
Is opencms-modules.xml generated automatically by the system when modules
are imported?
I've also found the same definitions in the manifest.xml file in the modules
which define types. Can anyone point me to some documentation on how to
create manifest.xml or how it is used by the system?
Thanks,
Matthew Fremont
_______________________________________________
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