Phoenix Documentation
Phoenix ProductionPhoenix PreviewContentful
Primary version
Primary version
  • 🔥Phoenix 🔥
  • Installation + Usage
    • Prerequisites
    • Installation
    • Usage
  • Development
    • Architecture
      • Heroku
    • Content Types
      • Action Stats Block
      • Campaign
      • Content Block
      • Cause Page
      • Company Page
      • Current Club Block
      • Current School Block
      • Embed
      • External Link
      • Landing Page
      • Link Action
      • Metadata
      • Page
      • Photo Submission Action
      • Selection Submission Action
      • Share Action
      • Signup Referrals Block
      • Social Drive Action
      • Voter Registration Action
      • Voter Registration Drive Action
      • Voter Registration Marketing Page
      • Voter Registration Referrals Block
    • Features
      • Affiliate Opt In
      • Affiliate Scholarship Block
      • Analytics Waypoint
      • Delayed Element
      • Dismissable Element
      • Stat Card
      • General Buttons
      • Groups
      • Paginated Campaign Gallery
      • Popover Dispatcher
      • Refer A Friend
      • Referrals Gallery
      • Sitewide Banner
      • Sixpack A/B Testing
        • Code Tests
        • Contentful Tests
        • Testing Tips
      • Tooltip
      • Traffic Distribution
      • Volunteer Credits
      • Voter Registration
      • Zendesk Form
    • Contentful
      • Workflow
      • Content Management API Scripts
    • Helpers
  • Phoenix API
    • v2
      • Campaigns Resource
      • Posts Resource
      • Zendesk Endpoint
  • Data + Performance
    • Monitoring
    • Analytics
    • Logging
  • Contributing Instructions
    • Edit This Documentation
    • Glossary
Powered by GitBook
On this page
  • Overview
  • Adding Pathnames to Dispatcher
  1. Development
  2. Features

Popover Dispatcher

PreviousPaginated Campaign GalleryNextRefer A Friend

Last updated 4 years ago

Overview

This is a feature used to display various banners and popover elements throughout the site. It checks what type of page we're on based on its pathname, and from there displays (or does not display) the correct element.

Adding Pathnames to Dispatcher

In certain cases, you may want to hide an element on certain pages, in others the element should only be rendered on a few choice pages. By creating multiple collections of pathnames specific to the need of a particular popover element, it's easier to keep track of how many popovers are getting displayed on a single page etc.

Before a popover element renders on the page, we check the config for any pages that have specific instructions. ie. what type (if any) of element should be rendered.

If you want to suppress/include the element from/on a page that may have multiple sub paths but share the same base path, you'll need to add a * to the end of the pathname.

All pathnames can be found here:

popover paths