thanks mad i managed to do so!
i changed the code for "packages/standard/templates/snippets/set_imageteaser_variable.php" as followed:
`<?php defined('AUTOMAD') or die('Direct access not permitted!'); ?>
<# Reset variable to false in case there is no match. #>
<@ set { :imageTeaser: false } @>
<# Try to get image from variable. #>
<@ with @{ imageTeaser | def ('*.jpg, *.png, *.gif') }~@>
<@ set { :imageTeaser: @{ :file } } @>
<@~ else ~@>
<# Else try to get first image from content. #>
<@ set { :imageTeaser:
@{ +main |
def (@{ textTeaser | markdown }) |
def (@{ text | markdown }) |
findFirstImage
}
} @>
<@~ end @>`
And now i realised GIFs are bigger than MP4 Videos. 😅
Optimizing Animated GIFs by Converting to HTML5 Video
Is there any plan to implement videos in the content blocks / teaser images any time soon? But maybe thats another discussion now..
ps: my code isnt displayed as code. What am I doing wrong?