Skip to content Skip to footer navigation
You are reading the docs for an old version of Statamic. Consider upgrading to Statamic 6.

Dashify Modifier

Returns a lowercase and trimmed string separated by dashes. Dashes are inserted before uppercase characters (with the exception of the first character of the string), and in place of spaces as well as underscores.

title: Just Because I Can
{{ title | dashify }}
{{ Statamic::modify($title)->dashify() }}
just-because-i-can