collective.disclaimer

Show a disclaimer the first time a user visits a site.


Keywords
plone, disclaimer
License
GPL-3.0
Install
pip install collective.disclaimer==1.0b1

Documentation

Disclaimer

Disclaimer

Life, the Universe, and Everything

Show a disclaimer the first time a user visits a site.

Mostly Harmless

Got an idea? Found a bug? Let us know by opening a support ticket.

Don't Panic

Installation

To enable this package in a buildout-based installation:

Edit your buildout.cfg and add the following to it:

[buildout]
...
eggs =
    collective.disclaimer

After updating the configuration you need to run ''bin/buildout'', which will take care of updating your system.

Go to the 'Site Setup' page in a Plone site and click on the 'Add-ons' link.

Check the box next to 'Disclaimer' and click the 'Activate' button.

Usage

After installing the package, go to the 'Disclaimer' configlet on 'Site Setup' and enable the feature.

https://raw.githubusercontent.com/collective/disclaimer/master/docs/configlet.png

The Disclaimer control panel configlet.

Now, the first time a user visits the site the disclaimer will be shown at the bottom of the page.

https://raw.githubusercontent.com/collective/disclaimer/master/docs/viewlet.png

The Disclaimer viewlet at work.

Users will see the disclaimer again whenever information in the configlet is updated.

How Does It Work?

This package registers a new viewlet on plone.portalfooter viewlet manager. The viewlet is normally hidden and it will only be shown after checking the user hasn't seen it yet. The information on last time the viewlet was updated is stored in the user's browser local storage.