Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I'd like to alter Views arguments which is currently Term name. Is there any way to use term name slug instead of complete Term name and use this slug as views argument? If not what hook should I use to convert these parameters from URL (as taxonomy term slug) to full name Taxonomy term which can be used as views argument. I tried to use hook_views_query_alter and hook_views_pre_view, but it's too late for any changes.

share|improve this question

1 Answer

up vote 1 down vote accepted

It is a build in function in drupal views. When you add a contextual filter there would a section called more. You can put the case to lower case and check "Transform spaces to dashes in URL"

share|improve this answer
That was exactly what I was looking for but I found another problem link. However, your solution is fully enough to me. – f.gorczynski Jan 18 at 12:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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