Go to page content

Andreas Stenius ASTEKK AB - blog site

Article — , 16 December 2010

Getting growl's to work outside the admin dashboard

To use growl, you need some magic to make it work.

Although the magic is quite simple. The missing pieces are a couple of client side scripts: /lib/js/modules/z.notice.js and /lib/css/zp-growl.css.

The base.tpl file shipped with zotonic (0.6) doesn't make use of the _js_include.tpl file that other parts use. So either use that one, to get the z.notice.js included, or simply add it to the list of libs at the bottom of the base.tpl.
Something like this:

{% lib ... "js/modules/z.notice.js" ... %} 

And the css is included near the top in base.tpl:

{% lib ... "css/zp-growl.css" ... %}