collective.messagesviewlet
Add-on displaying manager defined messages in a viewlet
Features
Messages are defined in control panel.
Multiple messages can be displayed together in the viewlet.
A message contains the following configuration attributes:
text : displayed text in the viewlet
message type : info, warning, important (different layout in the viewlet)
can hide : if checked, the user can hide the message (mark as read)
start date : displaying start date (optional)
end date : displaying end date (optional)
required roles : use must have one of the required roles (optional)
location : full site or homepage only
The collective.behavior.talcondition is enabled, providing 2 attributes. * tal condition : optional tal expression evaluated on viewlet context * bypassing roles : optional roles bypassing the tal condition
A workflow is provided with the following states:
inactive : not displayed
activated for anonymous : displayed for anonymous users
activated for members : displayed only for authenticated users
activated for localroles : displayed only for authenticated users having local reader role
The hiding functionality uses a cookie. It is necessary to deactivate a message to “reset” the cookie. When activating again, the message will be displayed.
The optional examples profiles add some usefull examples that can be activated when needed: * message for scheduled maintenance : must be activated for anonymous or members * message for imminent or current maintenance : must be activated for anonymous * message for staging site
Improvements
Modify hidden_uid when some fields are changed: end when gone, can_hide (to unchecked), start when end is gone
Message definition from file system
Message definition from rss feed
Translations
This product has been translated into
English
French
Installation
Install collective.messagesviewlet by adding it to your buildout:
[buildout]
...
eggs =
collective.messagesviewlet
and then running “bin/buildout”
Contribute
Support
If you are having issues, please let us know.
License
The project is licensed under the GPLv2.
Contributors
IMIO Team, support@imio.be
Changelog
0.4 (2015-09-10)
Use full url for readme images to display correctly on pypi. [sgeulette]
0.3 (2015-09-10)
Translate title configuration folder. [sgeulette]
0.2 (2015-09-09)
Added utils method to create message. Added example profile to add some messages. [sgeulette]
0.1 (2015-09-08)
Initial release. [sgeulette, anuyens, DieKatze, boulch]
Metadata
Release files for collective.messagesviewlet 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| collective.messagesviewlet-0.4.zip | 207.7 kB | Without provenance | Details for collective.messagesviewlet-0.4.zip |
Release files / collective.messagesviewlet-0.4.zip
| Download URL | collective.messagesviewlet-0.4.zip |
|---|---|
| Size | 207.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e4d12ba9417506a69ed25f3d1733c63c09946e08bf05c3236683d98bc8d5074
|
|
BLAKE2b-256 checksum How to use checksums |
387ba94396dafe60261ccff5a4c79db90a77e5c4b498db57e9ea37340ce840d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for collective.messagesviewlet 0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.