[opencms-dev] Template selection for XMLContent

Carl Alex Friis Nielsen cfn at kb.dk
Thu Nov 16 10:38:05 CET 2006


-----Original Message-----
From: opencms-dev-bounces at opencms.org@KB On Behalf Of "Olli Aro"
<olli_aro at yahoo.co.uk>

> When you did your modification did you just change the configuration files
> (if yes how do you add a property dialog with drop down widget in the
> configurations) or did you have to customize some JSPs in order to achieve
> this (if yes which ones)?

It is somewhat more complicated than that - you also have to write some
java code for some classes and then configure the system to use them
instead of the original ones.

If you read the source of 
org.opencms.frontend.templateone.CmsPropertyTemplateOne
you can see how it has been done for template one.
It contains code to select different property dialogs
based on the type of resource having its properties set
and the code to generate all sorts of widgets.

Which class handles property dialogs is set in the
opencms-workplace.xml configuration file - it is the
third <dialoghandler> entry (found near the top of the file).

You may also have to change some jsp's, but the best way to
do it is to figure out how it is done in templateone and
do something similar.

Cheers,

Carl



More information about the opencms-dev mailing list