[opencms-dev] Radio Select Widget
Atle Enersen
atle.enersen at gmail.com
Fri Aug 1 19:41:39 CEST 2025
Hello again :-)
Might be helpful to see the full XSD(?):
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xsd:include schemaLocation="opencms://opencms-xmlcontent.xsd"/>
<xsd:element name="EnersenArticleNormalData" type="OpenCmsEnersenArticleNormalData"/>
<xsd:complexType name="OpenCmsEnersenArticleNormalData">
<xsd:sequence>
<xsd:element name="EnersenArticleNormal" type="OpenCmsEnersenArticleNormal" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="OpenCmsEnersenArticleNormal">
<xsd:sequence>
<xsd:element name="Title" type="OpenCmsString" />
<xsd:element name="RealAuthorName" type="OpenCmsString" />
<xsd:element name="RealAuthorEmail" type="OpenCmsString" />
<xsd:element name="Teaser" type="OpenCmsHtml" />
<xsd:element name="Ingress" type="OpenCmsHtml" />
<xsd:element name="Body" type="OpenCmsHtml" />
<xsd:element name="DatePublish" type="OpenCmsDateTime" />
<xsd:element name="DateVisible" type="OpenCmsDateTime" />
<xsd:element name="DateUnpublish" type="OpenCmsDateTime" />
<xsd:element name="Categories" type="OpenCmsDynamicCategory" />
<xsd:element name="ImageTop" type="OpenCmsVfsFile" />
<xsd:element name="ImageTopText" type="OpenCmsHtml" />
<xsd:element name="ImageBottom" type="OpenCmsVfsFile" />
<xsd:element name="ImageBottomText" type="OpenCmsHtml" />
<xsd:element name="LinkURI" type="OpenCmsVarLink" />
<xsd:element name="DisplayOrder" type="OpenCmsString" />
<xsd:element name="FooterVariant" type="OpenCmsString" minOccurs="0"/>
</xsd:sequence>
<xsd:attribute name="language" type="OpenCmsLocale" use="required"/>
</xsd:complexType>
<xsd:annotation>
<xsd:appinfo>
<resourcebundles>
<propertybundle name="org.enersen.core.messages" />
</resourcebundles>
<FieldSettings>
<Setting>
<PropertyName>Title</PropertyName>
<DisplayName><![CDATA[%(key.label.Title)]]></DisplayName>
<Description><![CDATA[%(key.label.Title.help)]]></Description>
<Widget>string</Widget>
<Default><![CDATA[%(key.type.enersenarticlenormal.title)]]></Default>
<Search>listtitle</Search>
<Mapping>
<MapTo>property:Title</MapTo>
<UseDefault>true</UseDefault>
</Mapping>
</Setting>
<Setting>
<PropertyName>RealAuthorName</PropertyName>
<Widget>string</Widget>
<Default>Navn Navnesen</Default>
</Setting>
<Setting>
<PropertyName>RealAuthorEmail</PropertyName>
<Widget>string</Widget>
<Default>Epostadresse</Default>
</Setting>
<Setting>
<PropertyName>Teaser</PropertyName>
<Widget>html</Widget>
<WidgetConfig><![CDATA[height:600px,link,anchor,source,downloadgallery,formatselect]]></WidgetConfig>
</Setting>
<Setting>
<PropertyName>Ingress</PropertyName>
<Widget>html</Widget>
<WidgetConfig><![CDATA[height:600px,link,anchor,source,downloadgallery,formatselect]]></WidgetConfig>
</Setting>
<Setting>
<PropertyName>Body</PropertyName>
<Widget>html</Widget>
<WidgetConfig><![CDATA[height:800px,link,anchor,source,downloadgallery,formatselect]]></WidgetConfig>
</Setting>
<Setting>
<PropertyName>DatePublish</PropertyName>
<Widget>datetime</Widget>
<Default><![CDATA[%(currenttime)]]></Default>
<Search>listdate</Search>
</Setting>
<Setting>
<PropertyName>DateVisible</PropertyName>
<Widget>datetime</Widget>
<Default><![CDATA[%(currenttime)]]></Default>
<Search>listdate</Search>
</Setting>
<Setting>
<PropertyName>DateUnpublish</PropertyName>
<Widget>datetime</Widget>
<Default><![CDATA[%(currenttime)]]></Default>
<Search>listdate</Search>
</Setting>
<Setting>
<PropertyName>Categories</PropertyName>
<Widget>category</Widget>
<WidgetConfig>onlyleafs=false</WidgetConfig>
<Search>false</Search>
</Setting>
<Setting>
<PropertyName>ImageTop</PropertyName>
<Widget>imagegallery</Widget>
<WidgetConfig>{useformat:true}</WidgetConfig>
<Search>false</Search>
</Setting>
<Setting>
<PropertyName>ImageTopText</PropertyName>
<Widget>html</Widget>
<WidgetConfig><![CDATA[height:600px,link,anchor,source,downloadgallery,formatselect]]></WidgetConfig>
</Setting>
<Setting>
<PropertyName>ImageBottom</PropertyName>
<Widget>imagegallery</Widget>
<WidgetConfig>{useformat:true}</WidgetConfig>
<Search>false</Search>
</Setting>
<Setting>
<PropertyName>ImageBottomText</PropertyName>
<Widget>html</Widget>
<WidgetConfig><![CDATA[height:600px,link,anchor,source,downloadgallery,formatselect]]></WidgetConfig>
</Setting>
<Setting>
<PropertyName>LinkURI</PropertyName>
<Widget>file</Widget>
<Search>false</Search>
<Display>singleline</Display>
</Setting>
<Setting>
<PropertyName>DisplayOrder</PropertyName>
<Widget>string</Widget>
<Default>0</Default>
</Setting>
<Setting>
<PropertyName>FooterVariant</PropertyName>
<Widget>radio</Widget>
<WidgetConfig><![CDATA[default=Standard|blog=Blog|tur=Tur|overblikket=Overblikket]]></WidgetConfig>
<Default>default</Default>
</Setting>
</FieldSettings>
</xsd:appinfo>
</xsd:annotation>
</xsd:schema>
Best regards/Vennlig hilsen, Atle Enersen
--
Tel.: +47 48 06 31 71
Paoletti Corrado <c.paoletti at fineco.it <mailto:c.paoletti at fineco.it>> skrev følgende den 01.08.2025, 14:37:
FinecoBank S.p.A. - Internal Use Only
Hi Atle Enersen,
I'll give you an example:
<xsd:element name="Icon" type="OpenCmsString" />
<layout element="Icon" widget="RadioSelectWidget" configuration=" public:Solo pubblica|private:Solo privata|both*:Pubblica e Privata " />
The * after last option stands for default choise;
Note that options are showed from the last one to the first so in my example you'll see
° Pubblica e Privata
° Solo privata
° Solo pubblica
Hope to be useful.
Corrado
From: opencms-dev <opencms-dev-bounces at opencms.org <mailto:opencms-dev-bounces at opencms.org>> On Behalf Of Atle Enersen via opencms-dev
Sent: venerdì 1 agosto 2025 13:57
To: opencms-dev at opencms.org <mailto:opencms-dev at opencms.org>
Cc: Atle Enersen <atle.enersen at gmail.com <mailto:atle.enersen at gmail.com>>
Subject: [opencms-dev] Radio Select Widget
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 <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 <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
More information about the opencms-dev
mailing list