Content Type CTHP - NCIOCPL/cgov-digital-platform GitHub Wiki

Items to Discuss

  • Should we make the Overview into a CTHP card (instead of using the body field)?

Things to deprecate

  • CDR Definition ID
  • Definition Title
  • CDR Definition Character Limit
  • Tagline
  • CTHP Multimedia Slot (this was used when we had a full width overview, which we no longer have)
  • Body slot?

Naming

  • Display Name: Cancer Type Homepage
  • Machine-readable Name: cgov_cthp

Description

Pathway to specific cancer type information for patients and health professionals. Includes links to information about treatment, causes & prevention, screening, statistics, and research, when applicable.

Fields

Common Fields

Unique Fields to This Content Type

Audience

  • Field Name: field_audience
  • Label: Audience
  • Required: Yes
  • Type: Dropdown
    • defaults to Patient, with the option to change to Health Professional
  • Tooltip Text: n/a
  • Cardinality: 1
  • Translatable: Yes

Audience Toggle

  • Field Name: field_audience_toggle
  • Label: Audience Toggle
  • Required: Yes
  • Type: Entity reference
    • Allows user to only select CTHPs
  • Tooltip Text: n/a
  • Cardinality: 1
  • Translatable: Yes

CTHP Cards

paragraph field that holds CTHP Cards

  • Field Name: field_cthp_cards
  • Label:
  • Required:
  • Type:
  • Cardinality: 1
  • Translatable: Yes

Paragraph Types:

CTHP Overview Card

  • Machine Name: cgov_cthp_overview_card
  • Label: CTHP Overview Card
  • Description: Overview card to display on CTHP
  • Fields
    • CTHP Card Title*
      • Field Name: field_cthp_card_title
      • Label: CTHP Card Title
      • Required: Yes
      • Type: Text Field
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • CTHP Card Theme*
      • Field Name: field_cthp_card_theme
      • Label: CTHP Card Theme
      • Required: Yes
      • Type: Dropdown
        • Values:
          • Treatment (CSS Class: cthp-treatment)
          • Research (CSS Class: cthp-research)
          • Causes & Prevention (CSS Class: cthp-causes)
          • Screening (CSS Class: cthp-screening)
          • Genetics (CSS Class: cthp-genetics)
          • Survival Rates & Prognosis (CSS Class: cthp-survival)
          • General Resources on Coping (CSS Class: cthp-general)
          • Overview
          • Pink Feature
          • Yellow Feature
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • CTHP Overview Card Text
      • Field Name: field_cthp_overview_card_text
      • Label: CTHP Overview Card Text
      • Required: No
      • Type: Full WYSIWYG
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes

CTHP Guide Card

  • Machine Name: cgov_cthp_guide_card
  • Label: CTHP Guide Card
  • Description: Guide card to display on CTHP
  • Validation: When no guide card references exist, a editable text field is needed to display that there is no information (e.g. causes and prevention). If this text field is populated, we also don't display the PDQ Link Heading.
  • Fields
    • CTHP Card Title*
      • Field Name: field_cthp_card_title
      • Label: CTHP Card Title
      • Required: Yes
      • Type: Text Field
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • CTHP Card Theme*
      • Field Name: field_cthp_card_theme
      • Label: CTHP Card Theme
      • Required: Yes
      • Type: Dropdown
        • Values:
          • Treatment (CSS Class: cthp-treatment)
          • Research (CSS Class: cthp-research)
          • Causes & Prevention (CSS Class: cthp-causes)
          • Screening (CSS Class: cthp-screening)
          • Genetics (CSS Class: cthp-genetics)
          • Survival Rates & Prognosis (CSS Class: cthp-survival)
          • General Resources on Coping (CSS Class: cthp-general)
          • Overview
          • Pink Feature
          • Yellow Feature
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • CTHP Guide Card Description
      • Field Name: field_cthp_guide_card_desc
      • Label: CTHP Guide Card Description
      • Required:
      • Type: Streamlined WYSIWYG
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • PDQ Links
      • Field Name: field_pdq_links
      • Label: PDQ Links
      • Required:
      • Type: Entity Reference
      • Tooltip Text:
      • Cardinality: Infinite
      • Translatable: Yes
    • PDQ Link Heading
      • Field Name: field_pdq_link_heading
      • Label: PDQ Link Heading
      • Required:
      • Type: Text Field
      • Tooltip Text:
      • Cardinality: Infinite
      • Translatable: Yes
    • View More Information *NOTE: Copy Related Resources structure
      • Field Name: field_view_more_information
      • Label: View More Information
      • Required:
      • Type: Paragraph
        • Allowed types:
          • cgov_external_link
          • cgov_internal_link
          • cgov_media_link? (TBD)
      • Tooltip Text:
      • Cardinality: Infinite
      • Translatable: Yes
        • Works like related resources, allows any content type to be linked to
        • On the front-end, if there is only one link, we do not display a dropdown. If there are multiple links, this displays the View More Information label, and hides the links in a dropdown, viewable with a carrot.

CTHP Feature Card

  • Machine Readable Name: cgov_cthp_feature_card
  • Label: CTHP Feature Card
  • Description
  • Fields
    • CTHP Card Title*
      • Field Name: field_cthp_card_title
      • Label: CTHP Card Title
      • Required: Yes
      • Type: Text Field
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • CTHP Card Theme*
      • Field Name: field_cthp_card_theme
      • Label: CTHP Feature Card Theme
      • Required: Yes
      • Type: Dropdown
        • Values:
          • Treatment (CSS Class: cthp-treatment)
          • Research (CSS Class: cthp-research)
          • Causes & Prevention (CSS Class: cthp-causes)
          • Screening (CSS Class: cthp-screening)
          • Genetics (CSS Class: cthp-genetics)
          • Survival Rates & Prognosis (CSS Class: cthp-survival)
          • General Resources on Coping (CSS Class: cthp-general)
          • Overview
          • Pink Feature
          • Yellow Feature
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • Featured Content:
      • This pulls the panoramic image from the selected content type
      • Field Name: featured_content
      • Label: Featured Content
      • Type: Entity Reference
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes

CTHP External Feature Card

  • Machine Readable Name: cgov_cthp_feature_card_external
  • Label: CTHP External Feature Card
  • Description
  • Fields
    • CTHP Card Title*
      • Field Name: field_cthp_card_title
      • Label: CTHP Card Title
      • Required: Yes
      • Type: Text Field
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • CTHP Card Theme*
      • Field Name: field_cthp_card_theme
      • Label: CTHP Feature Card Theme
      • Required: Yes
      • Type: Dropdown
        • Values:
          • Treatment (CSS Class: cthp-treatment)
          • Research (CSS Class: cthp-research)
          • Causes & Prevention (CSS Class: cthp-causes)
          • Screening (CSS Class: cthp-screening)
          • Genetics (CSS Class: cthp-genetics)
          • Survival Rates & Prognosis (CSS Class: cthp-survival)
          • General Resources on Coping (CSS Class: cthp-general)
          • Overview
          • Pink Feature
          • Yellow Feature
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • Featured Content:
      • This will allow the external link
      • Field Name: field_featured_url
      • Label: External Link
      • Type: Link
      • Cardinality: 1
      • Translatable: No
    • Card Description
      • Field Name: field_override_card_description
      • Label: Card Description
      • Type: Text (plain)
      • Max Characters: 255
      • Required: No
      • Cardinality: 1
      • Translatable: No
    • Promotional Image
      • Field Name: field_override_image_promotional
      • Label: Promotional Image
      • Type: Entity Reference
        • Allowed Content
          • cgov_image
      • Required: Yes
      • Cardinality: 1
      • Translatable: No

CTHP Raw HTML Card

  • Field Name: cgov_cthp_raw_html_card
  • Label: CTHP Raw HTML Card
  • Description:
  • Fields
    • CTHP Card Title*
      • Field Name: field_cthp_card_title
      • Label: CTHP Card Title
      • Required: Yes
      • Type: Text Field
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • CTHP Card Theme*
      • Field Name: field_cthp_card_theme
      • Label: CTHP Feature Card Theme
      • Required: Yes
      • Type: Dropdown
        • Values:
          • Treatment (CSS Class: cthp-treatment)
          • Research (CSS Class: cthp-research)
          • Causes & Prevention (CSS Class: cthp-causes)
          • Screening (CSS Class: cthp-screening)
          • Genetics (CSS Class: cthp-genetics)
          • Survival Rates & Prognosis (CSS Class: cthp-survival)
          • General Resources on Coping (CSS Class: cthp-general)
          • Overview
          • Pink Feature
          • Yellow Feature
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • HTML Content
      • Field Name: field_html_content
      • Label: HTML Content
      • Type: Full HTML Field
      • Required: No
      • Max characters: N/A
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: No

CTHP Research Card

  • Field Name: cgov_cthp_research_card
  • Label: CTHP Research Card
  • Description:
  • Tooltip Text: Allows a user to add a cancer research page, and have it appear as a card.
  • Display Rules:
    • Displays the "Research" title for the Research Card and the cthp-research theme as the background color for the heading
      • Display the title as "Investigación" for a spanish CTHP
    • Display the top 4 items that have been added to the selected Cancer Research Page
      • Display as many as are available (either 1, 2, or 3) if 4 items have not been added
      • Display the Page Title for each item from the Cancer Research content type on the Research Card
      • Display a hardcoded "View more research" link below the items on the Research card that links to the Cancer Research Page
        • Display the link as "Ver más investigaciones" when viewing a spanish CTHP
      • Display the card as blank if no items have been added to the Cancer Research content type
  • Fields
    • CTHP Card Title*
      • Field Name: field_cthp_card_title
      • Label: CTHP Card Title
      • Required: Yes
      • Type: Text Field
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • CTHP Card Theme*
      • Field Name: field_cthp_card_theme
      • Label: CTHP Feature Card Theme
      • Required: Yes
      • Type: Dropdown
        • Values:
          • Treatment (CSS Class: cthp-treatment)
          • Research (CSS Class: cthp-research)
          • Causes & Prevention (CSS Class: cthp-causes)
          • Screening (CSS Class: cthp-screening)
          • Genetics (CSS Class: cthp-genetics)
          • Survival Rates & Prognosis (CSS Class: cthp-survival)
          • General Resources on Coping (CSS Class: cthp-general)
          • Overview
          • Pink Feature
          • Yellow Feature
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • Research Page
      • Field Name: field_research_page
      • Label: Research Page
      • Required:
      • Type: Entity Reference
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes

CTHP Video Card

  • Field Name: cgov_cthp_video_card
  • Label: CTHP Video Card
  • Description:
  • Fields
    • CTHP Card Title*
      • Field Name: field_cthp_card_title
      • Label: CTHP Card Title
      • Required: Yes
      • Type: Text Field
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • CTHP Card Theme*
      • Field Name: field_cthp_card_theme
      • Label: CTHP Feature Card Theme
      • Required: Yes
      • Type: Dropdown
        • Values:
          • Treatment (CSS Class: cthp-treatment)
          • Research (CSS Class: cthp-research)
          • Causes & Prevention (CSS Class: cthp-causes)
          • Screening (CSS Class: cthp-screening)
          • Genetics (CSS Class: cthp-genetics)
          • Survival Rates & Prognosis (CSS Class: cthp-survival)
          • General Resources on Coping (CSS Class: cthp-general)
          • Overview
          • Pink Feature
          • Yellow Feature
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • Video
      • Field Name: field_cthp_video
      • Label: Video
      • Required:
      • Type: Video Player
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • Override Card Description
      • Field Name: field_cthp_override_description
      • Label: Override Card Description
      • Required: No
      • Type: Text
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
    • Target URL
      • Field Name: field_cthp_target_url
      • Label: Target URL
      • Required:
      • Type: URL
      • Tooltip Text:
      • Cardinality: 1
      • Translatable: Yes
  • Display Rules:
    • If video is added only (no target URL s provided,
      • display the video (plays inline)
      • link with arrow to cgov video page
      • displays feature card description of video page, unless an override description is provided (in which case the override desc displays instead)
    • Video is added with an override description. The target URL is an external link without a description. The card should
      • display the video (plays inline)
      • display the override video description provided
      • link with arrow to the external URL
      • display the blue exit disclaimer icon (within the card description)
    • Video is added without an override description. The target URL is an external link with a description. The card should
      • display the video (plays inline)
      • display the external link description provided
      • link with arrow to the external URL
      • display the blue exit disclaimer icon (within the card description)
    • Video is added with an override description. The target URL is an external link with a description. The card should
      • display the video (plays inline)
      • display the override video description provided
      • link with arrow to the external URL
      • display the blue exit disclaimer icon (within the card description)
    • Video is added without an override description (note: the video page has a feature card description). The target URL is an external link without a description. The card should
      • display the video (plays inline)
      • display no description (there's no entity to pull)
      • link with arrow to the external URL
      • display the blue exit disclaimer icon (within the empty card description)

CTHP Block Card

  • Field Name: cgov_cthp_block_card
  • Label: CTHP Block Card
  • Description: Used for content which is the same across cancer types (Ex. Coping with Cancer)
  • Fields

Meta Data

Common Metadata

TBD

Local Metadata

TBD

Form Display Order

How the fields should display on the form (note: placement of Site Section and Pretty URL within the form fields is intentional. With these site sections, the Page Title will provide users with better context of where this page lives)

  • Language Dropdown
  • Page Title
  • Browser Title
  • Card Title
  • Meta Description
  • List Description
  • Feature Card Description
  • Audience Toggle
  • Site Section
  • Pretty URL
  • Body <-- probably going away
  • CTHP cards
  • Promotional Image
  • Search Engine Restrictions

Example URLs:

⚠️ **GitHub.com Fallback** ⚠️