XF 2.0 How to convert a phrase to lowercase in template?

Hi!

Is it possible to convert a phrase into a lowercase in a template. Normally I can use filters. Is it possible with phrases too? If yes, what is the syntax?

Best regards,
Tommi
 
{{ phrase('the_phrase_name')|to_lower }}
Hi Chris - plodding my way through a basic template that might save me some time on a repetitive task.

Does this have an alternative to set a variable to initial caps? Something like

<xf:set var="$name_cap" value="{{ $name|to_initial_caps }}" />

So $name=foo becomes $name_cap=Foo
 
Hi Chris - plodding my way through a basic template that might save me some time on a repetitive task.

Does this have an alternative to set a variable to initial caps? Something like

<xf:set var="$name_cap" value="{{ $name|to_initial_caps }}" />

So $name=foo becomes $name_cap=Foo
<xf:set var="$name_cap" value="{{ $name|to_upper('ucwords') }}" />
 
Top Bottom