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

Ashish Shekhar ashish.shekharcsc at gmail.com
Tue Jul 14 15:13:51 CEST 2015


Thanks for the reply. It still didn't work after changing and configuring
to abc.xsd.

-Ashish

On Tue, Jul 14, 2015 at 1:25 PM, Antonio Cordeddu <
antoniocordeddu at coranto.it> wrote:

>  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) - Italyantoniocordeddu at coranto.it
> Skype: antonio.cordedduhttp://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 visithttp://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>
> _______________________________________________
> 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/e8bdaa08/attachment.htm>


More information about the opencms-dev mailing list