Media Type Video - NCIOCPL/cgov-digital-platform GitHub Wiki
- Display Name: Video
- Machine-readable Name: cgov_video
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.
- Name - in the common fields listing, this is referred to as Page Title (the H1). For media entities, Drupal calls this the 'Name' field and does not allow you to override the label unlike node.
- Browser Title
- Card Title
- Meta Description
- List Description
- Feature Card Description
- Site Sections
- Pretty URL
- Body
- Posted Date
- Updated Date
- Reviewed Date
-
Date Display Mode
- Date display rules - when more than one date is selected in Date Display Mode - use the most recent of the dates selected. Display the label of that date, and that date. If only one is selected, show the label and the date. If nothing is selected, no date displays.
- Search Engine Restrictions
- Related Resources
- 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
- 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
- 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
TBD
TBD
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
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
-
Name:
- Video Display: Small: Title
-
Name:
Video Display: Small: Title
- Machine Name: video_display_small_title
-
Name:
- Video Display: Medium: No Title
-
Name:
Video Display: Medium: No Title
- Machine Name: video_display_medium_no_title
-
Name:
- Video Display: Medium: Title
-
Name:
Video Display: Medium: Title
- Machine Name: video_display_medium_title
-
Name:
- Video Display: Large: No Title
-
Name:
Video Display: Large: No Title
- Machine Name: video_display_large_no_title
-
Name:
- Video Display: Large: Title
-
Name:
Video Display: Large: Title
- Machine Name: video_display_large_title
-
Name:
Others TBD, also names might change.
- Video Pages
- Body Content, with caption
- No Body, With Caption
- No Body, Without Caption
- Embedded Videos
- 50% with caption
- 50% without caption *
- ...
- Listings
- Related Resources
- List
- Thumbnail image upload - this is a holdover from a previous video implementation? Since we use gloimage now, this does not do anything.
- 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)