feat: add content elements, change backend preview
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user