[opencms-dev] Template selection for XMLContent

Olli Aro olli_aro at yahoo.co.uk
Thu Nov 16 11:10:49 CET 2006


Thanks Carl :)

I will give this a go and will see how it turns out.

Regards,

Olli 

-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Carl Alex Friis
Nielsen
Sent: 16 November 2006 09:38
To: The OpenCms mailing list
Subject: RE: [opencms-dev] Template selection for XMLContent

-----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

_______________________________________________
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


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.430 / Virus Database: 268.14.5/534 - Release Date: 14/11/2006
15:58


Send instant messages to your online friends http://uk.messenger.yahoo.com 



More information about the opencms-dev mailing list