Forums / Setup & design / replace spaces with underscores
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
Friday 06 January 2006 8:45:34 am
Felicitudes to you Felix, you are correct. Many thanks.Nigel