[opencms-dev] Add (checkbox, radio buttons, drop down menu) Property

Carlos González González cgonzalez at viavansi.com
Thu Mar 23 10:31:38 CET 2006


I want to add a new checkbox (or radio buttons or drop down menu )
property to xmlpage. 
 
In opencms-vfs.xml:
 
<type class="org.opencms.file.types.CmsResourceTypeXmlPage"
name="xmlpage" id="6">
 
I add                                                    
 
<properties>
            <property>
                        <name>Perfiles</name>
                        <value type="shared"> <![CDATA[true]]></value>
</property>                   
</properties>
 
How can I specify the type?
 
 
The FolderExtended microsite does what I want to do:
In opencms-modules.xml:
<type class="org.opencms.file.types.CmsResourceTypeFolderExtended"
name="microsite" id="19">
<properties>
                   <property>
                            <name>style_main_configpath</name>
 
<value><![CDATA[${resource.folder.path}_configuration/]]></value>
                    </property>
            </properties>
            <copy-resources>
                        <copy-resource
source="/system/modules/org.opencms.frontend.templateone/copyresources/_
configuration" target="${resource.folder.path}" type="new"/>
                        <copy-resource
source="/system/modules/org.opencms.frontend.templateone.modules/copyres
ources/modules" target="${resource.folder.path}" type="new"/>
             </copy-resources>
</type>
 
Must I make something similar? How do I do it?
 
Thanks and sorry for my english.
 
 
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060323/130686b4/attachment.htm>


More information about the opencms-dev mailing list