Settings demo
Settings examples of this article:
- name="boxschema" widget="select": Selects the color scheme of the article.
- name="text" widget="string": Fills in the text to overwrite the title of this article.
- name="showimage" widget="checkbox": Controls the visibility of the image.
- name="date" widget="datebox": Defines the date for this article.
- name="format" widget="radio": Chooses the date format to be shown with or without the time.
This article uses material from the Wikipedia article Tulip and is licensed under the GNU Free Documentation License.
Settings values:
Select box "Box Color" = box_schema2
Text field "Text" = Settings demo
Check box "Show Image" = false
Date picker "Date" = 1306317240000
Radio buttons "Date Format" = both
Settings demo description

For this example several settings were defined in the xml schema definition of the article. The values of the settings are accessed inside of the formatter and used for example to control the layout options of this article on this containerpage.
Settings examples of this article:
- name="boxschema" widget="select": Selects the color scheme of the article.
- name="text" widget="string": Fills in the text to overwrite the title of this article.
- name="showimage" widget="checkbox": Controls the visibility of the image.
- name="date" widget="datebox": Defines the date for this article.
- name="format" widget="radio": Chooses the date format to be shown with or without the time.
Please check following xml schema definition and the formatter to see how the settings can be defined and used:
/system/modules/org.opencms.dev.demo/schemas/settins_article.xsd
/system/modules/org.opencms.dev.demo/formatters/settings_article/settings.jsp
This article uses material from the Wikipedia article Tulip and is licensed under the GNU Free Documentation License.
Settings values:
Select box "Box Color" = box_schema1
Text field "Text" = Settings demo description
Check box "Show Image" = true
Date picker "Date" =
Radio buttons "Date Format" = date