[Rocksolid Custom Elements] - Video einbinden? Wie?
Hallo Leute,
ich möchte gerne ein Video in einem Custom Elements Template einbinden und frage mich gerade, wie das wohl geht. :)
Vielleicht hat ja jemand ne Idee.
Wahrscheinlich ähnlich zu einem Image - das funktioniert ja so:
Code:
<?php if ($image = $this->getImageObject($this->image, $this->size)): ?>
<img src="<?php echo $this->getImageObject($this->image, $this->size)->src ?>" alt="" />
<?php endif ?>
Und in der config hat man dann:
Code:
'image' => array(
'label' => array(
'de' => array('Bild', ''),
),
'inputType' => 'fileTree',
'eval' => array(
'fieldType' => 'radio',
'filesOnly' => true,
'extensions' => 'jpg,jpeg,png,gif,svg',
),
),