Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Drupal 7 & 8 module for creating and displaying content in lightboxes.

Notifications You must be signed in to change notification settings

CascadePublicMedia/lightbox_campaigns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightbox Campaigns

CONTENTS OF THIS FILE

  • Introduction
  • Requirements
  • Installation
  • Configuration
  • Use
  • Maintainers
  • License

INTRODUCTION

Lightbox Campaigns enables the creation of "campaigns" that can be configured to display full page content to users based roles, content types, and/or paths.

REQUIREMENTS

This module requires the following libraries:

INSTALLATION

CONFIGURATION

  • Configure user permissions in Administration » People » Permissions:

    • Add lightbox campaigns

      Enables a user to add new lightbox campaigns.

    • Administer lightbox campaigns

      Users need this permission to access the campaigns list and generally administer news/existing campaigns.

    • Delete lightbox campaigns

      Enables a user to delete any existing lightbox campaigns.

    • Edit lightbox campaigns

      Enables a user to edit any existing lightbox campaigns.

USE

Lightbox campaign entities can be added from Content » Lightbox campaigns.

Every campaign entities has the following fields by default:

  • Campaign name (string)

    The name used in administrative pages to identify a campaign.

  • Enabled (boolean)

    Whether or not the campaign is enabled. Campaigns that are not enabled will not display to users under any circumstances.

  • Lightbox content (formatted text)

    The content to appear in the lightbox displayed to users.

  • Reset timer (select)

    The amount of time to wait before displaying the lightbox to a user who has already seen it.

  • Start date/time (datetime)

    Earliest date and time that the lightbox should begin displaying to users.

  • End date/time (datetime)

    Latest date and time that the lightbox should display to users.

  • Visibility

    The following rules can be used to fine-grain the circumstances under which the campaigns's lightbox will be displayed to users. Any number of rules can be combined and all rules must pass for content to be displayed.

    • Content Types

      If any content types are selected, the lightbox will only display on pages of the content types selected.

      If no content types are selected, the lightbox will display on pages of any content type.

    • Roles

      If any user roles are selected, the lightbox will only to users belonging to the selected roles.

      If no user roles are selected, the lightbox will display to all users.

    • Paths

      If paths are listed and the "Show only for the specified paths" option is selected, the lightbox will only appear on the listed paths.

      If the "Hide for the specified paths" option is selected, the lightbox will display on any path expect the listed paths.

      If no paths are listed, the lightbox will display on any path.

MAINTAINERS

Current maintainers:

This project is sponsored by:

LICENSE

All code in this repository is licensed GPLv2. A LICENSE file is not included in this repository per Drupal's module packaging specifications.

See Licensing on Drupal.org.