Forums / Setup & design / replace spaces with underscores

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

replace spaces with underscores

Author Message

nigel dodd

Friday 06 January 2006 7:59:02 am

Surely there is an easy way, using a template function or operator, to replace the spaces in a string with underscores. It is done in the url for a page so surely the functionality to do it should be readily available to template code.

I have looked in the string operator documentation but there_is_nothing.

Felix Laate

Friday 06 January 2006 8:03:29 am

Hi Nigel!

I did this with the str_replace contrib (http://ez.no/community/contribs/template_plugins/string_replace_operator). Easy and efficiant.

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

nigel dodd

Friday 06 January 2006 8:45:34 am

Felicitudes to you Felix, you are correct. Many thanks.
Nigel