XF 2.0 XF 1 wordTrim functionality

KiF

Active member
Licensed customer
Hello,

Is there a way to apply in a template XF 1 xen:string wordTrim functionality?

{xen:string wordTrim, '999999999333', 3, 9, ''}

If yes, could you tip please, how to do this?
 
Closest exposed is {{ snippet('string', 100) }} . Otherwise, you'd need to either expose something custom or do it in PHP.
 
Back
Top Bottom