Skip to content
Zotonic
  • Start
  • Cookbook
  • 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_comment
  • Reference
  • Frontend developer
  • Email
  • Template filter
  • Transform
  • Identifier

gravatar_code

Module

mod_comment

Calculate the gravatar code for an e-mail address:

{{ "arjan@scherpenisse.net"|gravatar_code }}

Will output:

3046ecab06c4f9cdb49963a96636e5ef

This hash can then be used for displaying Gravatar images.

Edit on GitHub

Related documentation

Filters

slugify

Converts a text into a slug.

Filters

as_atom

Convert a value to an Erlang atom.

Filters

normalize_email

Normalize an email address, used in the identity management.

Filters

md5

Translates a string to a md5 hex value.

Filters

sha1

Translate a string to a sha1 hex value.

Filters

to_name

Map a string to a name . That is a lowercased string with only [a-z0-9_] characters.

Filters

floor

Round down a floating point value.

Filters

to_boolean

Convert the input to a boolean value.

Filters

language_sort_localized

Sort a list of language codes or map with languages on their localized name in the currently selected language. This is useful for…

GitHub © 2026 Zotonic