plugin:notification
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:notification [2019-07-10 08:39] – solewniczak | plugin:notification [2023-03-07 15:17] (current) – solewniczak | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : it@rid.pl | email : it@rid.pl | ||
type : action, syntax | type : action, syntax | ||
- | lastupdate : 2019-07-08 | + | lastupdate : 2023-03-07 |
- | compatible : | + | compatible : Hogfather, Greebo |
- | depends | + | depends |
conflicts | conflicts | ||
similar | similar | ||
- | tags : | + | tags : |
downloadurl: | downloadurl: | ||
bugtracker : https:// | bugtracker : https:// | ||
sourcerepo : https:// | sourcerepo : https:// | ||
- | donationurl: | ||
screenshot_img : | screenshot_img : | ||
---- | ---- | ||
- | This plugin works as an aggregation hub for notifications from other dokuwiki plugins. | + | ===== Installation ===== |
+ | |||
+ | :!: This Plugin depends on the following other plugins: | ||
+ | * [[sqlite]] | ||
+ | |||
+ | Search and install the plugin using the [[plugin: | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | This plugin works as an aggregation hub for notifications from other dokuwiki plugins. | ||
+ | * [[approve]] -- inform the maintainers about pages that aren't approved. Plugins provided: '' | ||
+ | * [[bez]] -- inform the users about problems and tasks they have to resolve. Plugins provided: '' | ||
+ | * [[ireadit]] -- inform the users about the pages they have to read. Plugins provided: '' | ||
+ | |||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | ==== List ==== | ||
+ | |||
+ | The basic syntax to display all the notifications from all the plugins for the currently login user is: | ||
+ | < | ||
+ | ---- notification list ---- | ||
+ | ---- | ||
+ | </ | ||
+ | Notifications are displayed as an unordered list with the date. For example: | ||
+ | * 2019-09-02 You have the page to approve: [[: | ||
+ | * 2019-09-03 You have a page to read: [[:acl]] | ||
+ | |||
+ | You can user regular expression to limit the notifications to some plugins only: | ||
+ | < | ||
+ | ---- notification list ---- | ||
+ | plugin: ^(approve|ireadit) | ||
+ | ---- | ||
+ | </ | ||
+ | |||
+ | You can also display notifications for concrete user: | ||
+ | < | ||
+ | ---- notification list ---- | ||
+ | user: name | ||
+ | ---- | ||
+ | </ | ||
+ | or use a special syntax for the currently login user (default): | ||
+ | < | ||
+ | ---- notification list ---- | ||
+ | user: $USER$ | ||
+ | ---- | ||
+ | </ | ||
+ | |||
+ | Plugin also allows you to turn off the full message, using syntax: | ||
+ | < | ||
+ | ---- notification list ---- | ||
+ | full:0 | ||
+ | ---- | ||
+ | </ | ||
+ | This will cause the plugin to display only links to the pages. For example: | ||
+ | * 2019-09-02 [[: | ||
+ | * 2019-09-03 [[:acl]] | ||
+ | |||
+ | You can also specify date format for the plugin using the '' | ||
+ | < | ||
+ | ---- notification list ---- | ||
+ | date: %Y-%m-%d %H:%M | ||
+ | ---- | ||
+ | </ | ||
+ | The date parameter is parsed by PHP's [[phpfn> | ||
+ | |||
+ | You can join several parameters: | ||
+ | < | ||
+ | ---- notification list ---- | ||
+ | plugin: ^(approve|ireadit) | ||
+ | user: name | ||
+ | full:0 | ||
+ | date: %Y-%m-%d %H:%M | ||
+ | ---- | ||
+ | </ | ||
+ | |||
+ | ===== Discussion ===== | ||
+ | |||
+ | [[https:// | ||
plugin/notification.1562740752.txt.gz · Last modified: 2019-07-10 08:39 by solewniczak