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
  • Content Type Fields
  • Campaign Gallery
  • Technical Notes
  • GraphQL
  1. Development
  2. Content Types

Cause Page

PreviousContent BlockNextCompany Page

Last updated 4 years ago

Overview

Displays a collection of (optional) stats, campaigns and article content revolving around a particular cause space (e.g. education).

📸 .

Content Type Fields

  • Internal Title: This is for our internal Contentful organization and will be how the block shows up in search results, etc. (does not display to the user on the page).

  • Slug: The URL slug, which we prefix with /causes/. e.g. dosomething.org/causes/environment. This must be a on Rogue since we use this value to query campaign content via Rogue.

  • Cover Image: Displays as the background image of the banner at the top of the page.

  • Supertitle: Shows up atop the title in the banner (can be used as a nice prefix to the title) e.g. "Let's do something about the".

  • Title: Displays right under the Supertitle. This is the title of the page. e.g. "Environment".

  • Description: The Rich Text description (information/introduction) for this cause page. Displays in the banner below the title.

  • Content: The Rich Text content of the page. This can be content in markdown format, embedded Assets, or valid embedded entry blocks (preferabely Gallery Blocks).

  • Additional Content (optional): Supports displaying a triad gallery of 'Stats' under the Description in the Cause Page banner. Stats are rendered in a triad gallery of . There should be at least three Stats. The properties necessary for the FactCards are required in an array of stats, along with a statsBackgroundColor to be assigned their backgroundColor CSS property. Example:

{
    "statsBackgroundColor": "#3D9CB1",
    "stats": [
        {
            "link": {
                "url": "https://www.dosomething.org/us/campaigns/company-student-debt",
                "text": "Invest In Us"
            },
            "title": "actions taken about student debt",
            "number": 59077
        },
        {
            "link": {
                "url": "https://www.dosomething.org/us/stories/legacy-donor-admissions",
                "text": "Merit Over Money"
            },
            "title": "signatures for fairer admissions",
            "number": 27711
        },
        {
            "link": {
                "url": "https://www.dosomething.org/us/campaigns/fed/community",
                "text": "Fed Up"
            },
            "title": "votes for better school lunches",
            "number": 576846
        }
    ]
}

Campaign Gallery

The cause page will automatically pull open, website campaigns from Rogue associated with this cause space (via the campaign's cause field), ordered by start date.

Technical Notes

GraphQL

The Cause Page is available as a CausePage in GraphQL.

It'll display a paginated gallery of these campaigns atop the content section. (Using the utility).

Example cause-page
valid cause name
StatCards
Paginated Campaign Gallery
Cause page stats example