Hello World Content Type
Only the custom
view of the Hello
World widget requires any configuration, so it only needs
one configuration panel in
Content Studio
(in addition to the General and Advanced panels that all widgets
have).
<?xml version="1.0" encoding="UTF-8"?> <content-types xmlns="http://xmlns.escenic.com/2008/content-type" xmlns:ui="http://xmlns.escenic.com/2008/interface-hints" xmlns:rep="http://xmlns.escenic.com/2009/representations" xmlns:doc="http://xmlns.vizrt.com/2010/documentation" version="4"> <content-type name="widget_helloworld"> <ui:label>Hello world Widget</ui:label> <ui:description>The widget that shows a list of articles of a particular type</ui:description> <ui:title-field>title</ui:title-field> <panel name="general"> <ui:label>General</ui:label> <ui:description>The basic configuration fields for hello world widget</ui:description> <field name="title" type="basic" mime-type="text/plain"> <ui:label>Name</ui:label> <ui:description>The name of the widget</ui:description> <constraints> <required>true</required> </constraints> </field> <field name="view" type="enumeration"> <ui:label>View</ui:label> <ui:description>The view to be used to render the widget</ui:description> <enumeration value="default"> <ui:label>Default</ui:label> </enumeration> <enumeration value="custom"> <ui:label>Custom</ui:label> </enumeration> <ui:value-if-unset>default</ui:value-if-unset> </field> </panel> <panel name="custom"> <ui:label>Custom</ui:label> <ui:description>The custom configuration fields for the hello world widget</ui:description> <field name="customText" type="basic" mime-type="text/plain"> <ui:label>Custom Text</ui:label> <ui:value-if-unset>Hallo everyone</ui:value-if-unset> </field> </panel> <summary> <ui:label>Content Summary</ui:label> <field name="title" type="basic" mime-type="text/plain"> <ui:label>Name</ui:label> </field> </summary> </content-type> </content-types>