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

I hope you can help me out with this. I have created a simple view with an argument. I use that argument to filter (contextual filter) the content of the view. I already know I can use that argument as a taxonomy term ID and as a taxonomy term name, which means I can get my view loaded as:

www.myhost.com/myview/12

or

www.myhost.com/myview/termname

Both ways are ok and work fine but the problem I have is that I'd like to use an alias for the term, instead of the termname. Term names I already have on the site have some characters which are not really SEO friendly.

Is there a way to use the taxonomy term alias or any other workaround to get this?

Thanks in advance for your help.

share|improve this question
Might want to check out this answer: drupal.stackexchange.com/questions/3425/… and this answer: drupal.org/node/1156022. Posted as a comment because I'm working on the same thing myself. – RobW May 3 at 1:47

2 Answers

install the path auto module and configure the alias patterns for the taxonomy terms as you wish

share|improve this answer
Thanks for your response, Blackem, but as far as I can see, pathauto doesn't allow me to use the term alias... I forgot to say I am using panels so things get complicated... – José L. May 2 at 18:46

Finally my work around this was as it follows:

  1. I created a custom taxonomy vocabulary which has an extra field "human friendly tag".
  2. I changed the name of all the taxonomy terms for being seo-friendly (not spanish accents, nor brackets and so forth).
  3. I use term name for the internal stuff in my view (term names are part of the url). You can see how to get this here as @RobW pointed out.
  4. I use the first field (the "human friendly tag") when content is rendered (in the view). I need to use "rewrite results" options when creating the view.

I hope it is clear enough. :-)

share|improve this answer

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.