Skip to content
Zotonic
  • Start
  • Guides
  • Reference
  • Releases

Live search

Search across all Zotonic content

Type at least two characters

Results are matched against titles, summaries and topics as you type.

Filters · mod_base
  • Reference
  • Frontend developer
  • Template filter
  • Format
  • Text

capfirst

Module

mod_base

Converts the first character of the value to uppercase.

For example:

{{ value|capfirst }}

When value is hello world then the output is Hello world.

At the moment this only works for the characters a through z. Accented characters (like ü) are not yet supported.

Edit on GitHub

Related documentation

Filters

upper

Translates the value to upper case.

Filters

lower

Translates the value to lower case.

Filters

ljust

Justifies the value in a field of a certain width to the left, with spaces.

Filters

stringify

Translates atoms, integers and floats to strings. The undefined value is translated to the empty string. Does not translate tuples.

Filters

summary

Extract a summary from a resource.

Filters

rjust

Justifies the value in a field of a certain width to the right, using spaces.

Filters

center

Centers the value in a field of a certain width using spaces.

Filters

media_exif_value

Formats EXIF values for display in templates.

Filters

merge_tags

A mail-merge like filter where tag-expressions in a text are replaced with the value of their evaluation.

GitHub © 2026 Zotonic