This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

sele123123
sele123123

Is there any way to convert the {{ this.page.title }} tot titlecase, so the first letter is uppercase?

sele123123
sele123123

I should really research things more thoroughly before posting, heres the solution: {{ this.page.title|capitalize }} http://twig.sensiolabs.org/doc/filters/capitalize.html

Vojta Svoboda
Vojta Svoboda

Try to use Twig extensions plugin with ucfirst filter:

Hello I'm {{ 'jack' | ucfirst }}

There is also uppercase, lowercase, truncate, wordwrap filters.

1-3 of 3

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.