PopUp Per Page
Categories
Component ID
2544072
Component name
PopUp Per Page
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This module integrates the CoverPop JavaScript library (https://github.com/chloeleichen/CoverPop) into Drupal.
This particular library fork adds integration with cookies, so users can disable the popup for two different time periods, adjustable in admin section.
Known Limitation:
Do not create more than about 20 PopUps Per Page. If your users will disable the popups they can reach a cookie limit of their browser (http://browsercookielimits.squawky.net/). If they do, the oldest cookie gets deleted –> popup show again on that page –> user is not happy.
Instalation & usage
- Install and enable the module as normal (you can visit https://www.drupal.org/documentation/install/modules-themes for more information)
- Download the CoverPop library from https://github.com/chloeleichen/CoverPop
- Extract the library to 'sites/all/libraries/coverpop'
- correct path to the js file is 'sites/all/libraries/coverpop/CoverPop.js'
- correct path to the CSS file is 'sites/all/libraries/coverpop/CoverPop.css'
- default CSS contain just the basics, you will definitely need to do some own styling. By default the PopUp will show in top left corner.
- Go to 'admin/config/user-interface/coverpop' and made required adjustments
- Anything you give an ID="CoverPop-cover" will became a PopUp, be it a block, panel pane, webform… – do you see the possibilities? With this approach you can have different PopUps on any page.
Requirements
- Libraries (http://www.drupal.org/project/libraries)
