[opencms-dev] How to set defaults for template and template-elements properties of a xmlcontent type
Bernd Wolfsegger
bw at code-create.com
Mon Aug 15 10:22:08 CEST 2005
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/standard_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/
More information about the opencms-dev
mailing list