Extend the "Thumbnail" field formatter configuration to include the Video title too

Created on 29 April 2024, 7 months ago

Problem/Motivation

I'm proposing to extend the "Thumbnail" formatter's configuration to add an "Include title" checkbox option, for cases where we want to display the video's title alongside the thumbnail, similar to the image below.

Proposed resolution

  • Add a new configuration option to the "Thumbnail" formatter to include display the video's title alongside the thumbnail image.
  • Render thumbnail (with or without title) appropriately.

Remaining tasks

Discuss solution here.

User interface changes

  • Field formatter settings form would change.
  • Displaying the thumbnail would be different if the "Include title" option is selected.

API changes

renderThumbnail() function now has an optional third parameter ($display_video_title):
public function renderThumbnail($image_style, $link_url, $display_video_title = FALSE) { ... }

Data model changes

None

Feature request
Status

Needs review

Version

2.5

Component

Video Embed Field (base module)

Created by

🇨🇴Colombia camilo.escobar

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024