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
  • Social Share Posts in Rogue
  1. Development
  2. Content Types

Share Action

PreviousSelection Submission ActionNextSignup Referrals Block

Last updated 4 years ago

Overview

Displays a card with text, a link embed, and a button to share the link on social media (Twitter or Facebook).

Content Type Fields

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

  • Action ID: The Action ID associated with this action in Rogue.

  • Title: The title for the Share Action which displays in the bar atop the card.

  • Social Platform: The Social Platform which the share button will launch to share the link on social media. (Facebook or Twitter).

  • Content(optional): Descriptive content for the Share Action displayed in the card atop the link embed.

  • Link: The full URL that the user should share. This URL will be embedded as a link in the card.

  • Hide Embed(optional): If selected, the link embed will not be displayed in the card.

  • Affirmation Block(optional): A reference link to the Contentful entry that will be displayed in a modal upon a successful social share.

  • Affirmation Text(optional): Can be used instead of an Affirmation Block to display a text affirmation for the user in a modal upon successful social share. (Defaults to "Thanks for rallying your friends on Facebook!").

  • Additional Content: (optional): Any custom settings for this page in JSON format:

    • action, (e.g. "action": "social-share") is assigned for legacy Share Actions where the Action ID is not assigned, to override the default value assigned to the social-share post sent to Rogue if this is a Facebook Share Action and the user is authenticated. (See below).

Social Share Posts in Rogue

If the Social Platform field is assigned to Facebook, for authenticated users, when they successfully share their social post, we'll send a request to Rogue on behalf of this user, to create a social-share Post.

We use the Action ID field to assign this Post to the correct Action in Rogue.

Older Share Actions which pre-date the Action ID field will rely on a Campaign ID, which means the Share Action will only update Rogue on Campaign pages (excluding e.g. Story pages, Article pages, or Block pages (/us/blocks/:id)). We also assign an action: "default" field to the Post to utilize the 'default' Action configured for the campaign, in lieu of an assigned Action ID. (This is sometimes overridden via the action field in Additional Content).

Example Share Action