Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Plone integration with Gritter

Project Description

A Plone add-on that makes the standard Plone status messages appear like a Growl notification using the jQuery Gritter plugin.

It transforms the Plone status messages from this

to this

How it works

It just works! If JavaScript is disabled you will have the standard Plone behaviour. Test it visiting:

Installation

To install redturtle.gritterize you simply add redturtle.gritterize to the list of eggs in your buildout, run buildout and restart Plone. Then, install redturtle.gritterize using the Add-ons control panel.

Configuration

At the moment it is really basic, this will change. You can configure the stickiness and the persistence time (in milliseconds) by adding a custom a config object to the igritter global object:

igritter.config = {
    time: {
      'portalMessage info': 10000,
      'portalMessage warning': 20000,
    }
};

According to the matching portal message class the right persistnece time will be set (in this case 10 seconds for the info ones, 20 for the warning ones). If the lookup fails the gritter message will be sticky.

Adding more gritter messages

Following the same approach you can add additional gritter messages (e.g. you can pop up form validation messages).

This is an example:

message = jq('.fieldErrorBox');
mygritter = {title: message.parent().find('.widget > span > a').html(),
             text: message.html(),
             class_name: 'portalMessage error',
             target: message,
             remove: false
};
igritter.add_gritter(mygritter);

This will take the element with class .fieldErrorBox and try to get info from the page to fill in the gritter message.

If remove is true the orginal error will be removed. Changelog =========

0.9.3 (2013-09-23)

  • Added a new add_gritter function to allow adding gritter messages unrelated to plone portal messages [ale-rt]

0.9.2 (2013-09-10)

  • The stickiness and persistence time of the popup can be configured now (see README.rst) [ale-rt]

0.9.1 (2013-07-30)

  • Fixinig broken release [ale-rt]

0.9.0 (2013-07-30)

  • Initial release. [ale-rt]
Release History

Release History

History Node

0.9.4.dev0

This version
History Node

0.9.3

History Node

0.9.2

History Node

0.9.1

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
redturtle.gritterize-0.9.3.zip (26.8 kB) Copy SHA256 Checksum SHA256 Source Sep 23, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting