Streamline text- and textpic/media templates

This commit is contained in:
Björn Fromme
2020-12-01 11:50:29 +01:00
parent e3b0a7ac9e
commit ec7a6f5aed
2 changed files with 44 additions and 0 deletions
@@ -0,0 +1,14 @@
<html data-namespace-typo3-fluid="true" lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<f:layout name="Default"/>
<f:section name="Main">
<ep:container rteContent="true" data="{data}">
<f:render partial="Textmedia/Default" section="Content" arguments="{_all}"/>
</ep:container>
</f:section>
</html>
@@ -0,0 +1,30 @@
<html data-namespace-typo3-fluid="true" lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ep="http://typo3.org/ns/EP/EpTheme/ViewHelpers"
xmlns:f="http://typo3.org/ns/fluid/ViewHelpers">
<f:layout name="Default"/>
<f:section name="Main">
<f:switch expression="{data.layout}">
<f:case value="2">
<f:render partial="ContentSlider" arguments="{images: files, thumbnails: 1, id: data.uid}"/>
</f:case>
<f:case value="4">
<f:render partial="ContentSlider" arguments="{images: files, thumbnails: 0, id: data.uid}"/>
</f:case>
<f:case value="3">
<f:render partial="Textmedia/LinkPanel" section="Content" arguments="{images: files}"/>
</f:case>
<f:case value="5">
<f:render partial="Textmedia/Partnerlogos" section="Content" arguments="{_all}"/>
</f:case>
<f:defaultCase>
<ep:container rteContent="true" data="{data}">
<f:render partial="Textmedia/Default" section="Content" arguments="{_all}"/>
</ep:container>
</f:defaultCase>
</f:switch>
</f:section>
</html>