[opencms-dev] Radio Select Widget
Michael Emmerich
m.emmerich at alkacon.com
Fri Aug 1 14:45:32 CEST 2025
Atle,
the page in the documentation unfortunately uses the old syntax (which
still works) to define widgets and not the <FieldSettings> that should
be used today.
You can use the RadioButton widget in the editor like this:
If you have a field defined in your xsd
<xsd:element name="Test" type="OpenCmsString" />
The Settings for it is this to use the RadioButton Widget:
[...]
<xsd:annotation>
<xsd:appinfo>
[...]
<FieldSettings>
[...]
<Setting>
*<PropertyName>Test</PropertyName>
<Widget>radio</Widget>
<WidgetConfig>Option 1|Option 2*|Option 3|Option
4</WidgetConfig>*
</Setting>
[...]
</FieldSettings>
</xsd:appinfo>
</xsd:annotation>
[...]
We will take a look that we fix the link in the next documentation update.
The correct one is
https://documentation.opencms.org/opencms-documentation/template-development/content-editor-configuration/widget-configuration/index.html#select-widget-configuration-1c482dc6
Kind regards,
Michael
Am 01.08.25 um 13:57 schrieb Atle Enersen via opencms-dev:
>
> Hello.
>
> I consulted the documentation and found this
> https://documentation.opencms.org/opencms-documentation/template-development/content-editor-configuration/widget-configuration/index.html#select-widget-configuration-0b1b7f70
> . It refers to
> https://documentation.opencms.org/opencms-documentation/template-development/content-editor-configuration/widget-configuration/index.html#select-widget-configuration-0b1b7f70
> but that does not exist...
>
> Does anyone have an example for the XSD on a radio button
> configuration with four elements?
>
> Best regards/Vennlig hilsen, Atle Enersen
>
> --
>
> Tel.: +47 48 06 31 71
>
>
> _______________________________________________
> 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
> https://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
>
--
Michael Emmerich
Alkacon Software GmbH & Co. KG - The OpenCms Experts
http://www.alkacon.com
http://www.opencms.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20250801/1fe1996c/attachment.htm>
More information about the opencms-dev
mailing list