cancel
Showing results for 
Search instead for 
Did you mean: 

Can we give default value to a Custom Type Property

bisana
Champ on-the-rise
Champ on-the-rise
Hi
I am thinking a giving/defining   some default value to  Document Type Properties to my Custom Type.
So that this property will be same for all the documents which has been applied with the custom type.
Is there any why in which we could achieve this
Guidance requested
Thanks
Joseph John
2 REPLIES 2

jonash
Champ in-the-making
Champ in-the-making
You can set a default value for a property in the content model. Here's an example:


<property name="foo:customProperty">
    <title>Custom Property</title>
    <type>d:text</type>
    <default>default value</default>
</property>

bisana
Champ on-the-rise
Champ on-the-rise
Thanks
I have to try out
I will do it anf update you
Thanks