News widgets
News widgets are configured in the type newsWidget or one of its subitems. They can be used to display news on dashboards in the Web Client. The following figure shows an example of a news widget on the dashboard.
Available attributes:
- Author (author)
String. Enter true if the author who created the news item should be displayed, or false if he should not be displayed. - Color (color)
String. Enter the color for the news symbol and headline in hex syntax, e.g., #000000 for black. - Creation date (createDate)
Boolean. Enter true if the date when a news item was created should be displayed, or false if it should not be displayed. - Height (height)
Integer. Enter the height of the widget in px. - Localizations (localization)
String. Enter the localized values, e.g., for the widget title, using the following syntax:
de: {title:'Nachrichten'}, en: {title:'News'}. See Localizing widget text. - Script (scriptName)
String. Enter the name of the script (type News publisher) which contains the logic for retrieving news items. - Title (title)
String. Enter the widget title. If the title should be localized, use the following syntax: _('title') - Update date (updateDate)
Boolean. Enter true if the date when a news item was updated should be displayed, or false if it should not be displayed. - Visible (visible)
Boolean. Determines whether the widget is shown (true) or not (false).
Please see Scripts of the type News publisher for an example script which implements a news widget.