I have a custom content type called 'Project' that contains a field called 'Category' of type 'List (text)'.
I have created a custom view block that selects all category fields in Projects and used a contextual filter to 'Display a summary', so the block contains an unordered deduped list of the categories.
The block is loaded into a region in a custom template, and output in page.tpl.php using
print render($page['other_menu']);
Unfortunately, the URLs in the menu appear in this form: href="/projects/Culture-%26-Leisure"
I need them to be all lower case and replace -%26- with an underscore like this: href="/projects/culture_leisure"
I can make this happen using preg_replace()
, but suspect it's possible to have the view output the URL in the format I require. I just can't figure how to make the view do this.