[TYPO3-german] if maxCharacters
Noah L.
noah.lotzer at gmail.com
Mon Apr 25 18:15:46 CEST 2016
Hallo Frank,
meinst du sowas?
<f:if condition=“{my.item.text}">
<f:if condition="{maxCharacters} > 200">
<f:then>
<div class="timeline-body">
<f:format.crop maxCharacters="200" append="class">
<f:format.html>{my.item.text}</f:format.html>
</f:format.crop>
<button class="morelink"> weiterlesen</button>
</div>
</f:then>
<f:else>
<div class="timeline-body">
<f:format.html>{my.item.text}</f:format.html>
</div>
</f:else>
</f:if>
</f:if>
Grüße,
Noah
Frank Deutschmann <deutschmann at monobloc.de> schrieb am Mo., 25. Apr. 2016
um 17:20 Uhr:
> Hallo Liste,
>
> ich würde gerne etwas in dieser Form in mein Fluid-Template einbinden:
>
> <f:if condition=“{my.item.text}&&{maxCharacters>200}">
> <div class="timeline-body">
> <f:format.crop maxCharacters="200" append="class">
> <f:format.html>{my.item.text}</f:format.html>
> </f:format.crop>
> <button class="morelink"> weiterlesen</button>
> </div>
> </f:if>
> <f:if condition=“{my.item.text}&&{maxCharacters<200}">
> <div class="timeline-body">
> <f:format.html>{my.item.text}</f:format.html>
> </div>
> </f:if>
>
>
> Natürlich geht das so nicht - aber ich habe leider auch keine Idee, wie
> könnte ich die maxChars als Condition anlegen?
> Workaround mit Typoscript?
>
> Vielen Dank für eure Hilfe,
> Frank
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
More information about the TYPO3-german
mailing list