mirror of
https://github.com/a2nt/silverstripe-elemental-basics.git
synced 2024-10-22 17:05:54 +02:00
FIX: Elemental && Video File
This commit is contained in:
parent
d66d4b0e79
commit
7ac2a3002b
@ -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();
|
||||
|
||||
|
@ -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" />
|
||||
|
Loading…
Reference in New Issue
Block a user