1 -> Enable "Media" and "Media Library" module in core.
2 -> Add "Media reference" field in any content type, select Video Media type in reference field.
3 -> Create node inside that content type. Upload Video in video field.
4 -> Create new View using that content type and select Video field and select formatter "Rendered entity". (Exclude field from Display).
5 -> Add "Global: Custom text" field and use replacement pattern for Video field.
6 -> In output Video will not render as it strips out "video", "source" tags.

views_video_source_tag_issue

CommentFileSizeAuthor
#2 views_video_source.png676.47 KBjitumiet

Issue fork drupal-3224619

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

  • 9.3.x Comparecompare
  • 3224619-views-strips-out Comparecompare

Comments

jitumiet created an issue. See original summary.

jitumiet’s picture

StatusFileSize
new676.47 KB
jitumiet’s picture

Issue summary: View changes
larowlan’s picture

Category: Bug report » Feature request
Issue tags: -views +Bug Smash Initiative

This is a feature request

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

duaelfr’s picture

Status: Active » Closed (duplicate)