Files
dialog-relations-website/packages/base/ContentBlocks/ContentElements/imagegallery/templates/backend-preview.html
Dominik Polakovics 1cd8e30a16
All checks were successful
Build / build (push) Successful in 4m19s
Build / deploy-stage (push) Successful in 2m43s
Build / switch-stage (push) Successful in 2m5s
fix: change to imagecols
2025-06-18 17:37:42 +02:00

37 lines
1.2 KiB
HTML

<html
xmlns:be="http://typo3.org/ns/TYPO3/CMS/Backend/ViewHelpers"
data-namespace-typo3-fluid="true"
>
<f:layout name="Preview"/>
<f:section name="Header">
<be:link.editRecord uid="{data.uid}" table="{data.mainType}">
<f:if condition="{data.header}">
<f:then><strong>{data.header}</strong></f:then>
</f:if>
</be:link.editRecord>
</f:section>
<f:section name="Content">
<f:if condition="{data.image}">
<div class="row">
<f:for each="{data.image}" as="image" iteration="iterator">
<f:if condition="{iterator.index} < 3">
<div class="col-4">
<f:image image="{image}" width="100" height="auto" treatIdAsReference="1" alt="Preview image" />
</div>
</f:if>
</f:for>
</div>
<p>
<f:switch expression="{data.imagecols}">
<f:case value="2">2 Columns</f:case>
<f:case value="3">3 Columns</f:case>
<f:case value="5">5 Columns</f:case>
<f:defaultCase>1 Column</f:defaultCase>
</f:switch>
</p>
</f:if>
</f:section>
</html>