Media Type Video - NCIOCPL/cgov-digital-platform GitHub Wiki

Naming

  • Display Name: Video
  • Machine-readable Name: cgov_video

Description

While videos are hosted on YouTube, this content type is used to embed a YouTube video on a cancer.gov page. If a video is hosted on YouTube, it must be on cancer.gov.

Fields

Common Fields

See Media Type Images

Unique Fields to This Content Type

Youtube Video URL

  • Field Name: field_media_oembed_video
  • Label: Youtube Video URL
  • Type: Text (plain)
  • Required: Yes
  • Max Characters: 255 (This is a special field, so we should use what Drupal wants.)
  • Tooltip Text: The full URL to the Youtube video.
  • Translatable: yes

Override Thumbnail Image

  • Field Name: field_override_img_thumbnail_video
  • Label: Override Thumbnail Image
  • Type: Media Upload
    • Allows media:image
  • Required: No
  • Tooltip Text: Overrides the YouTube thumbnail image to be displayed for videos. Keep aspect ratio of 4:3. The minimum size of the image must be 2672px x 2004px.
  • Cardinality: 1
  • Translatable: Yes

Audio-Described Video Link

  • Field Name: field_external_link (reuse)
  • Label: Audio-Described Video Link
  • Type: Text (plain)
  • Required: No
  • Tooltip Text: Used to provide a link to the audio-described file. Enter the full URL starting with https://
  • Cardinality: 1
  • Translatable: Yes

Meta Data

Common Metadata

TBD

Local Metadata

TBD

Form Display Order

How the fields should display on the form

  • Language Dropdown
  • YouTube Video URL
  • Site Section
  • Pretty URL
  • Page Title
  • Browser Title
  • Card Title
  • Meta Description
  • List Description
  • Feature Card Description
  • Override Thumbnail Image
  • Body
  • Caption
  • Audio-Described Video Link
  • Posted Date
  • Updated Date
  • Reviewed Date
  • Date Display Mode
  • Related Resources
  • Search Engine Restrictions

Display View Modes

Most of the general content type view modes do not apply to videos, as well as there a multiple custom display modes. Below is the list of display modes that should be configured for Video.

  • Video Display: Small: No Title
    • Name: Video Display: Small: No Title
    • Machine Name: video_display_small_no_title
  • Video Display: Small: Title
    • Name: Video Display: Small: Title
    • Machine Name: video_display_small_title
  • Video Display: Medium: No Title
    • Name: Video Display: Medium: No Title
    • Machine Name: video_display_medium_no_title
  • Video Display: Medium: Title
    • Name: Video Display: Medium: Title
    • Machine Name: video_display_medium_title
  • Video Display: Large: No Title
    • Name: Video Display: Large: No Title
    • Machine Name: video_display_large_no_title
  • Video Display: Large: Title
    • Name: Video Display: Large: Title
    • Machine Name: video_display_large_title

Others TBD, also names might change.

Example URLS

Deprecated Fields:

  • Thumbnail image upload - this is a holdover from a previous video implementation? Since we use gloimage now, this does not do anything.

Video Templates still needed

  • Video Right, 50%, No title (gloSnVideo50NoTitleRight)
  • Video Right, 50%, Title (gloSnVideo50TitleRight)
  • Video centered, 75%, No Title (gloSnVideo75NoTitle)
  • Video centered, 75%, Title (gloSnVideo75Title)
  • Video centered, 100%, No Title (gloSnVideo100NoTitle)
  • Video centered, 100%, Title (gloSnVideo100Title)
⚠️ **GitHub.com Fallback** ⚠️