[opencms-dev] Checkbox checked

Matthias Griselle mgriselle at gmail.com
Fri Sep 27 15:01:48 CEST 2013


Hi,

I found why it did not work : I'm in a nested element. So, default values
must be defined in the parent xsd.
Forgot this rule, sorry ^^'

And thanks Antonio for help.

Regards,
Matthias


2013/9/27 Antonio Cordeddu <antoniocordeddu at coranto.it>

>  Hi Matthias,
>
> It works fine by this way:
>
> <xsd:element name="TestBoolean" type="OpenCmsBoolean" />
>         ...
>             <defaults>
>                 <default element="TestBoolean" value="true" />
>             </defaults>
>
> I'm using 8.5.2 OpenCms version.
>
> Kind Regards
> Antonio Cordeddu
>
>
> On 27/09/2013 09:56, Matthias Griselle wrote:
>
> Hi,
>
>  Is there a way to check a checkbox by default ?
>
>  In my XSD file, I tried :
> <xsd:element name="Active" type="OpenCmsBoolean"/>
>  ...
> <default element="Active" value="TRUE"/>
> <default element="Active" value="true"/>
> <default element="Active" value="1"/>
> <default element="Active" value="checked"/>
>
>  but nothing works. When a create a new module, checkbox are unchecked.
> What's the trick ?
>
>  Thx,
> Matthias
>
>
> _______________________________________________
> 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
>
>  _______________________________________
> Coranto informatica di Antonio Cordeddu
> Via Torricelli, 9 09047 Selargius (CA)
> antoniocordeddu at coranto.it
> http://www.coranto.it
> _______________________________________
>
>
>
> _______________________________________________
> 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/20130927/fb0c4c1e/attachment.htm>


More information about the opencms-dev mailing list