[opencms-dev] Issue with default values in the content type

Antonio Cordeddu antoniocordeddu at coranto.it
Tue Jul 14 09:55:03 CEST 2015


Hi Ashish,

you have to set the default value in the main xsd (abc-xsd.txt, in your 
case), as in the following sample:

...
<defaults>
                 <default element="MainContent/Title" value="Add a new 
title here"  />
</defaults>
...

Kind regards
Antonio Cordeddu

  
_______________________________________________
Coranto informatica di Antonio Cordeddu
Via Torricelli, 9 09047 Selargius (CA) - Italy
antoniocordeddu at coranto.it
Skype: antonio.cordeddu
http://www.coranto.it
_______________________________________________



On 13/07/2015 11:27, Ashish Shekhar wrote:
> Hi,
>
> I have created content type for which I have configure xsd as per my need.
>
> The default value which is coming fine for simple xml content type but 
> when I used nested content type the default value is not coming.
>
> I want the default value should come to every nested items when ever I 
> add new instance + but its not coming to a single instance.
>
> I am attaching my xsd. Does anyone have idea what is missing here?
>
> Thanks
> Ashish
>
>
> _______________________________________________
> 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/cgi-bin/mailman/listinfo/opencms-dev
>
>
>


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20150714/0f378bf1/attachment.htm>


More information about the opencms-dev mailing list