feat: add content elements, change backend preview
All checks were successful
Build / build (push) Successful in 4m0s
Build / deploy-stage (push) Successful in 2m50s
Build / switch-stage (push) Successful in 1m57s

This commit is contained in:
2024-12-15 19:08:26 +01:00
parent 1076fe6447
commit 696881e4f8
15 changed files with 137 additions and 26 deletions

View File

@@ -2,20 +2,27 @@
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}">{data.header}</be:link.editRecord>
<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">
Preview for Content Block: cloonar/hero
</f:section>
<f:if condition="{data.image}">
<f:image image="{data.image.0}" width="100" height="auto" treatIdAsReference="1" alt="Preview image" />
</f:if>
<f:comment>
<!-- Uncomment to override preview footer -->
<f:section name="Footer">
My custom Footer
<f:if condition="{data.bodytext}">
<p>
<f:format.crop maxCharacters="80">
<f:format.stripTags>{data.bodytext}</f:format.stripTags>
</f:format.crop>
</p>
</f:if>
</f:section>
</f:comment>
</html>