heimrichhannot/contao-news_media

Media support for news.

1.2.0 2023-11-01 14:05 UTC

This package is auto-updated.

Last update: 2024-11-30 02:13:35 UTC


README

News Player Element.

Features

  • embed local video/audio (like ContentMedia)
  • embed external video/audio
  • autoplay
  • individual preview image
  • custom templates (choose on newslist, newsarchive or newsreader)
  • custom preview image (choose on newslist or newsarchive)

Template Code

<?php if ($this->addMedia): ?>
	<?php echo $this->mediaPlayer; ?>
<?php endif; ?>