For Developers

Settings demo

5/25/11 10:54 AM

 Settings examples of this 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.

Settings values:

Text field "Text" = Settings demo
Check box "Show Image" = false
Date picker "Date" = 1306317240000
Radio buttons "Date Format" = both

Settings demo description

/dev-demo/.galleries/images/pic02.jpg

For this example several settings were defined in the XML schema definition of the article. The values of the settings are accessed inside the formatter and used for example to control the layout options of this article on this containerpage.

Settings examples of this 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 the following XML schema definition and the formatter to see how the settings can be defined and used:

/system/modules/com.alkacon.bootstrap.dev.demo/schemas/settins_article.xsd

/system/modules/com.alkacon.bootstrap.dev.demo/formatters/settings_article/settings.jsp

Settings values:

Text field "Text" = Settings demo description
Check box "Show Image" = true
Date picker "Date" =
Radio buttons "Date Format" = date