Closed adamwintle closed 9 years ago
No, standard MODX output modifiers are hardcoded in modOutputFilter.
You need to create your own snippet with this functionality and call it as
{$_modx->runSnippet('ellipsis', [
'input' => $introtext,
'length' => 50
])}
Maybe I will replace default filters somehow later.
By the way, some filters can be replaced by default Fenom functionality - read the docs.
{set $string = '1234567890'}
{$string|truncate:5:"..."}
It will output
12345...
The whole list of modifiers
Is it possible to use the standard MODX output modifiers on the Fenom template tags?
For example how can I apply this
[[+introtext:ellipsis=
50]]
To this?
{$introtext}