FIX: Elemental && Video File

This commit is contained in:
Tony Air 2024-03-24 22:26:18 +02:00
parent d66d4b0e79
commit 7ac2a3002b
2 changed files with 5 additions and 1 deletions

View File

@ -74,6 +74,10 @@ class BaseElementEx extends DataExtension
public function updateCMSEditLink(&$link): void
{
if(!method_exists($this->owner, 'inlineEditable')) {
return;
}
if (!$this->owner->inlineEditable()) {
$page = $this->owner->getPage();

View File

@ -1,4 +1,4 @@
<% if $Video || $Image %>
<% if $Video || $Image || $VideoFile %>
<% if $VideoFile %>
<video autoplay="autoplay" muted="muted" loop="loop">
<source src="{$VideoFile.Link}" type="video/mp4" />