format.crop

Simplified crop view helper that does not need a frontend environment

Examples

Defaults:

<f:format.crop maxCharacters="10">This is some very long text</f:format.crop>

Output:

This is...

Inline notation:

{someLongText -> f:format.crop(maxCharacters: 10)}

Output:

someLongText cropped after 10 characters...

(depending on the value of {someLongText})

Arguments

maxCharacters

DataType
mixed
Required
true

Description