Output filter and Custom Fields

A small question about the new Custom Fields : is it possible to use output filter ?
In my use case, I want to format a time on the email template.
I already get the custom field value like 02:30:00 and I want to tranform it to 2h30
On the lexicon entry for the email templates, I have tried [[+time:strtotime:date='%Hh%i']] as we do usually with MODX, but it doesn’t works.

Not a big deal, but I’m interested for an issue if it’s existing :slight_smile:

The email template uses twig, which has its own syntax for filters. See http://twig.sensiolabs.org/doc/2.x/templates.html and https://docs.modmore.com/en/Commerce/v1/Templates/Filters_Functions.html for custom filters in Commerce.

1 Like