<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
      data-namespace-typo3-fluid="true">
<div style="padding: 10px; border: 1px solid #ccc;">
    <strong>Product Gallery</strong>
    <f:if condition="{data.gallery_variant}"><span style="color:#666;"> ({data.gallery_variant})</span></f:if>
    <f:if condition="{data.gallery_title}"><br />Title: {data.gallery_title -> f:format.crop(maxCharacters: 40)}</f:if>
    <f:if condition="{data.gallery_products}"><br />Products: {data.gallery_products -> f:count()}</f:if>
</div>
</html>
