I have a custom field with a person's name in it, and I need to convert it (in the template) to all lowercase with dashes instead of spaces so I can use it as an ID tag. Example:

Suzie McRowdy becomes suzie-mcrowdy

Is there an (ideally free) add-on that will take care of this for me?

  • If it's a Matrix field, you could, maybe, use the url-title FT to do the conversion.
    – Eric Lamb
    Feb 12 '14 at 22:21
  • Can you clarify if you actually want the data in the database updated or keep that data 'as-is' and convert on template output? Feb 12 '14 at 22:27

If you need to do this from the template you could use a plugin like this one:


If you need to do it directly to the DB please update us so we can give you that solution as well.

Note: CE String also has a custom method called url_title which will do the same thing but, it's not a free add-on.

  • 4
    Also of note, plugins can be used as formatting filters too. Check this screenshot: cl.ly/Tsdy You can click Edit List, enable your plugin there, and select it in the list, forcing that format on the content of your field. Feb 12 '14 at 23:32

I did this with CE String:

<a href="{url}" class="icon-{exp:ce_str:ing url_title}{label}{/exp:ce_str:ing}">{label}</a>

You can see the docs here

The reason I like this method is CE String is super helpful across most site builds. It has so many useful features!


You could also use Low Replace (which is FREE!):


I haven't used it for adjusting the case of outputted data but it is supported.

That should get you started!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.