Video/Audio

This article is machine translated.

This feature is only available in Isotope eCommerce 2.2 and later.

This attribute behaves identically to the content element known from Contao Core, so you can easily use videos or audio files for the product presentation.

The

j_mediaelement template

must be included in the page layout.

Description

Setting Default setting Description
Description - This description serves as a hint to the backend user and is displayed below the input field.

Attribute Configuration

Setting Default Setting Description
Base Directory - Specify here from which directory the folder structure should be displayed.
Mandatory field - The product cannot be saved (backend) or added to the shopping cart (frontend) without this information.
Multilingual - Select whether this attribute must be translated into other languages.

The attribute is created in the backend via the product types. In the fontend you can output the attribute in the desired isotope template with the following code <?php echo $this->generateAttribute('interner_name'); ?>.

The attribute can also be given further options:

<?php
$arrOptions = array();
$arrOptions['autoplay'] = true; // Video automatisch abspielen
$arrOptions['width'] = 640; // Breite des Video-Players
$arrOptions['height'] = 480; // Höhe des Video-Players

echo $this->generateAttribute('interner_name', $arrOptions);
?>

The following video and audio files are supported: mp4, m4v, mov, wmv, webm, ogv, m4a, mp3, wma, mpeg, wav and ogg. In
addition, you can store a still image for the video or the audio file in the following formats: jpg, jpeg, gif, png, tif, tiff and bmp.