[opencms-dev] How to set defaults for template andtemplate-elements properties of a xmlcontent type
Arash Kaffamanesh
arash.kaffamanesh at pomegranate.de
Mon Aug 15 23:41:24 CEST 2005
Hi Bernd,
Thank you very much, I will try this solution, for the meanwhile I have
set the template and template-elements property for MyXmlContent on the
top folder where all MyXmlContent reside, but your solution is better
:-)
Thanks again,
Kind Regards,
Arash
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Bernd Wolfsegger
Sent: Montag, 15. August 2005 10:22
To: The OpenCms mailing list
Subject: Re: [opencms-dev] How to set defaults for template
andtemplate-elements properties of a xmlcontent type
Hi Arash,
do it in the opencms-modules.xml in your module section like this:
<resourcetypes>
<type
class="org.opencms.file.types.CmsResourceTypeXmlContent"
name="ccstandard" id="600">
<properties>
<property>
<name>HeadlineStyle</name>
<value type="shared"><!
[CDATA[text-title-content-bold]]></value>
</property>
<property>
<name>MetaAllowSearch</name>
<value type="shared"><![CDATA[yes]]></value>
</property>
<property>
<name>NavSelectedColor</name>
<value
type="shared"><![CDATA[#0099cc]]></value>
</property>
<property>
<name>NavSelectedStyle</name>
<value type="shared"><!
[CDATA[link-1-bold-selected]]></value>
</property>
<property>
<name>NavStyle</name>
<value type="shared"><!
[CDATA[link-1-bold]]></value>
</property>
<property>
<name>ShowBottomNavigation</name>
<value type="shared"><![CDATA[no]]></value>
</property>
<property>
<name>template-content</name>
<value type="shared"><!
[CDATA[/system/modules/com.codecreate.www/templates/content_templates/st
andard_template.jsp]]></value>
</property>
<property>
<name>template-elements</name>
<value type="shared"><!
[CDATA[/system/modules/com.codecreate.www/templates/frame_templates/main
_template.jsp]]></value>
</property>
</properties>
<param
name="schema">/system/modules/com.codecreate.www/schemas/standard_schema
.xsd</param>
</type>
Kind regards, Bernd
On Friday, 12. August 2005 22:45, Arash Kaffamanesh wrote:
> Hi,
>
> Who knows, how to set defaults for template and template-elements
> properties of a xmlcontent type.
>
> Thanks for possible hints.
>
> Regards,
> Arash
--
[ Code Create
[ Web Content Management and Presentation
[ Bernd Wolfsegger
[ Sun Certified Programmer for Java(TM) 2 Platform
[ Office in Germany
[
[ Lohmeyerstrasse 13
[ 10587 Berlin
[ Germany
[ Fon +49 (0)30 26555788
[ Fax +49 (0)30 2651835
[ Mobile +49 (0)163 6505622
[ Office in Kenya
[
[ P.O. Box 890
[ V/Market
[ 00621 Nairobi
[ Kenya
[ Mobile +254 (0)720 481053
[ bw at code-create.com
[ http://www.code-create.com/
_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please
visit http://mail.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list