feat: add content elements, change backend preview
This commit is contained in:
parent
1076fe6447
commit
696881e4f8
15 changed files with 137 additions and 26 deletions
|
|
@ -7,20 +7,22 @@
|
|||
<f:section name="Header">
|
||||
<be:link.editRecord uid="{data.uid}" table="{data.mainType}">
|
||||
<f:if condition="{data.header}">
|
||||
<f:then>{data.header}</f:then>
|
||||
<f:else>Text/Image Element</f:else>
|
||||
<f:then><strong>{data.header}</strong></f:then>
|
||||
</f:if>
|
||||
</be:link.editRecord>
|
||||
</f:section>
|
||||
|
||||
<f:section name="Content">
|
||||
<f:if condition="{data.bodytext}">
|
||||
<f:then>
|
||||
<p>Preview: <f:format.crop maxCharacters="50">{data.bodytext}</f:format.crop></p>
|
||||
</f:then>
|
||||
<f:else>
|
||||
<p>No text available</p>
|
||||
</f:else>
|
||||
</f:if>
|
||||
<f:if condition="{data.image}">
|
||||
<f:image image="{data.image.0}" width="100" height="auto" treatIdAsReference="1" alt="Preview image" />
|
||||
</f:if>
|
||||
|
||||
<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>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue