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
String. Enter true if the author who created the news item should be displayed, or false if he should not be displayed. - color
String. Enter the color for the news symbol and headline in hex syntax, e.g., #000000 for black. - 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
Integer. Enter the height of the widget in px. - 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. - scriptName
String. Enter the name of the script (type News publisher) which contains the logic for retrieving news items. - title
String. Enter the widget title. If the title should be localized, use the following syntax: _('title') - 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
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.