[TYPO3-german] if maxCharacters

Frank Deutschmann deutschmann at monobloc.de
Mon Apr 25 17:20:15 CEST 2016


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


More information about the TYPO3-german mailing list