LatestChangedPagesWidget implements WidgetRendererInterface
This widget will show a list of pages where latest changes in pages and tt_content where made. The sys_history is used to get the latest changes.
The list contains:
- datetime of change
- user (avatar, icon, name and realName)
- page title and rootline
- controls (show history, view webpage, edit page content, edit page properties)
The following options are available during registration:
- limit int number of pages to show in list
- historyLimit int number of sys_history records to be fetched in order to find limit number of pages. Increase this value if number of pages in list is not achieved.
Table of Contents
Interfaces
- WidgetRendererInterface
- The WidgetRendererInterface is the (new) base interface for all kind of widgets.
Methods
- __construct() : mixed
- getOptions() : array<string|int, mixed>
- getSettingsDefinitions() : array<string|int, SettingDefinition>
- renderWidget() : WidgetResult
- This method returns the content of a widget. The returned markup will be delivered by an AJAX call and will not be escaped.
- getLanguageService() : LanguageService
Methods
__construct()
public
__construct(BackendViewFactory $backendViewFactory, ConnectionPool $connectionPool, WidgetConfigurationInterface $configuration, SiteFinder $siteFinder[, array<string|int, mixed> $options = [] ]) : mixed
Parameters
- $backendViewFactory : BackendViewFactory
- $connectionPool : ConnectionPool
- $configuration : WidgetConfigurationInterface
- $siteFinder : SiteFinder
- $options : array<string|int, mixed> = []
getOptions()
public
getOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getSettingsDefinitions()
public
getSettingsDefinitions() : array<string|int, SettingDefinition>
Return values
array<string|int, SettingDefinition>renderWidget()
This method returns the content of a widget. The returned markup will be delivered by an AJAX call and will not be escaped.
public
renderWidget(WidgetContext $context) : WidgetResult
Be aware of XSS and ensure that the content is well encoded.
Parameters
- $context : WidgetContext
Return values
WidgetResultgetLanguageService()
protected
getLanguageService() : LanguageService