ViewHelper Documentation
format.crop
Use this view helper to crop the text between its opening and closing tags.
= Examples =
<f:format.crop maxCharacters="10">This is some very long text</f:format.crop>
<f:format.crop maxCharacters="17" append=" [more]">This is some very long text</f:format.crop>
WARNING: This tag does NOT handle tags currently. WARNING: This tag doesn't care about multibyte charsets currently.
Arguments
maxCharacters integer
Place where to truncate the string
append string
What to append, if truncation happened
value string
The input value which should be cropped. If not set, the evaluated contents of the child nodes will be used