Hey Leute,
Ich würde gerne, dass sich das Textmediaelement automatisch je nach Backend Layout anders ausgibt.
Ich habe leider noch nicht herausgefunden, wie ich das machen kann.
Momentan habe ich nur eine Lösung gefunden mit den Layouts bei Erscheinungsbild, sodass ich da momentan eine Formatierung vornehmen kann. Jedoch wäre es natürlich super wenn das automatisch geschehen würde. Konkret bräuchte ich 3 Formatierungen des Textmedia Elements je nach Backenlayout.
Das ist mein momentan leicht modifizierter Code:
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers" data-namespace-typo3-fluid="true">
<div id="c{data.uid}">
<f:if condition="{gallery.position.noWrap} != 1">
<f:render partial="Header" arguments="{_all}" />
</f:if>
<div class="{f:if(condition: '{data.layout} == 1', then: 'row paddingrow')}">
<div class="{f:if(condition: '{data.layout} == 1', then: 'col-lg-12')}">
<div class="ce-textpic ce-{gallery.position.horizontal} ce-{gallery.position.vertical}{f:if(condition: gallery.position.noWrap, then: ' ce-nowrap')}">
<div class="{f:if(condition: '{data.layout} == 1', then: 'col-md-4')}">
<f:if condition="{gallery.position.vertical} != 'below'">
<f:render partial="MediaGallery" arguments="{_all}" />
</f:if>
</div>
<div class="{f:if(condition: '{data.layout} == 1', then: 'col-md-8')} bodytext">
<f:if condition="{gallery.position.noWrap}">
<f:render partial="Header" arguments="{_all}" />
</f:if>
<f:format.html>{data.bodytext}</f:format.html>
</div>
</div>
</div>
<f:if condition="{gallery.position.vertical} == 'below'">
<f:render partial="MediaGallery" arguments="{_all}" />
</f:if>
</div>
<f:render partial="Footer" arguments="{_all}" />
</div>
</html>