ds-site/Resources/Private/Templates/Backend/ContentElements/Video.html

28 lines
1.1 KiB
HTML
Raw Permalink Normal View History

<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
data-namespace-typo3-fluid="true">
<f:for each="{videos}" as="video">
<figure>
<video controls {f:if(condition: video.properties.poster.publicUrl, then: 'poster="{video.properties.poster.publicUrl}"')}>
<source src="{video.publicUrl}" type="video/mp4">
</video>
<figcaption>
<a href="{be:uri.editRecord(
uid: uid,
table: 'tt_content'
)}">
<p>
Video v{video.originalFile.uid}: {video.title}<br>
Size: {video.size -> f:format.bytes(decimals: 2)}
<f:if condition="{video.properties.youtube}">
<br>
YouTube: {video.properties.youtube}
</f:if>
</p>
<p>{video.description -> f:format.nl2br()}</p>
</a>
</figcaption>
</figure>
</f:for>
</html>