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
  • Content Width Span
  1. Development
  2. Content Types

Content Block

PreviousCampaignNextCause Page

Last updated 4 years ago

Overview

Displays supertitle, title, copy, and image. Commonly used to list steps in a campaign.

Content Type Fields

  • Internal Title: This is for our internal Contentful organization and will be how the block shows up in search results, etc.

  • Supertitle (optional): The supertitle for the content block which appears in smaller font-size above the title.

  • Title (optional): The title for the content block which appears in larger font-size above the content.

  • Content: The content for the content block in Markdown format, displayed below the title.

  • Image (optional): An accompanying image displayed alongside the content.

  • Image Alignment (optional): Controls whether to render the image to the right or left of the content (defaults to right).

  • Additional Content (optional): A JSON field, with properties:

Content Width Span

By default, the content provided will span two-thirds of the row to accommodate the image in the other third. This works well for e.g. Campaign Pages where we assign extra row space for Content Blocks so that the image can simply appear within the extra space:

But for e.g. General Pages where the content width is truncated to accommodate the image within the natural bounds of the row, we need to ensure that when there is no image provided, the content flows across the full row:

The fullWidth prop toggles this behavior.

If a footerType is set in Additional Content, the content will span across the full row if:

  • The footerType is set to GetOutTheVoteBlock

  • Or if footerType is set to CivicEngineVoterWidget, and not rendered on a campaign page (URL does not contain /us/campaigns/)

footerType: Valid values: GetOutTheVoteBlock,

CivicEngineVoterWidget
Example Content Block
Content Block on Campaign Page
Content Block on General Page