Widget Repository: Widget Holder
Screens
In the figure above, it can be noted that in this interface, there is a widget for the quick news list. By clicking on a content, the user will be automatically directed to the news details.
Creating Widgets
All widgets that will be used in the portal's page customization are created from Lumis services, whether they are the standard services of the product itself or services developed by users.
In the context of widget creation, there are some important points to highlight:
- Every service interface of the type "Quick List" will always be subject to becoming a widget
- For a service interface that is not of the type "Quick List" to be available in the list of interfaces that can be widgets, it is necessary to add the configuration
<isWidget>true</isWidget>
in the definition of the service interface. By default, this configuration is inserted with the value false - It is the responsibility of the service developer to create an XSL that renders the widget appropriately. If the developer wishes to create an XSL for the interface so that it behaves differently from a widget, they can define one style for the default rendering and another style for the widget rendering. For the latter, it is necessary to specify the attribute
isWidgetDefault=“true”
so that when rendering the widget, this style is automatically applied. - Some LumisXP service interfaces are available for widget creation. They are:
- Event Agenda Service – Quick List Interface
- Alerts Service – Quick List Interface
- Comments Service – Quick List Interface
- WSRP Consumer Service – Remote Portlet Interface
- Contacts Service – List Interface
- Forum Service – Forum List Interface
- HTML Service – HTML Interface
- Links Service – Quick List Interface
- News Service – Quick List Interface
- Chat Room Service – Quick List Interface
- Webservice Viewer Service – Viewer Interface
- Wiki Service – Article Display Interface
The following code demonstrates an example of a widget interface and has a specific style for widgets: