ds-site/Resources/Private/Templates/Backend/ContentElements/Video.html
Daniel Siepmann def2aabcad Fix backend preview rendering for video CE
The ContentDataProcessor got a constructor argument.
We migrated to proper DI to not care.
2021-12-15 08:41:52 +01:00

27 lines
1.1 KiB
HTML

<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>