2

I would like to define the display settings of my Taxonomy term page. As I understand, this is possible by configuring the Taxonomy view provided by the Taxonomy module.

However, I use custom URL's and by so, my taxonomy pages doesn't have the URL taxonomy/term but something like products/tents.
Is there a way to customize these pages with the provide view?

  • 1
    taxonomy/term is the router path, products/tents is the alias. The path for your view should be the router path, i.e. taxonomy/term/%. No square brackets though, those are for tokens :) – Clive Jan 10 '13 at 14:45
  • So if I understand you correctly, if you insert taxonomy/term in the path of your view, you should be able to style the term page of your taxonomy items? But if I enter a contextual filter, the results turn out to be empty... Am I doing something wrong here? – Michiel Jan 10 '13 at 14:56
  • @Clive, the view only returns some results whenever I enter a number as contextual filter. If I enter a term like "tents", I don't get any results? It has been a while since I touch Drupal... :) – Michiel Jan 10 '13 at 15:14
  • Ah ok, if memory serves you need to edit your contextual filter, specify validation criteria, and validate against the taxonomy term name rather than the id. Does that make sense? – Clive Jan 10 '13 at 15:18
  • More or less... I think I've got it working now but there seems to be another problem going on right now. Care for a chat? Or do I just create another question? – Michiel Jan 10 '13 at 16:07
1

You can set the patterns used for Taxonomy URL aliases.

http://drupal.org/node/120631

Sounds like you want to use: [term:vocabulary]/[term:name]

If you have it enabled, you should be able to see the patterns here: www.yoursite.com/admin/config/search/path/patterns

  • That's what I figured, but when I enter [term:vocabulary]/[term:name]/% in my path on the Views UI, nothing happens... – Michiel Jan 10 '13 at 14:23
1

First thing, For customize path you can use Pathauto module where you can provide customize path according to your requirements for Node, Taxonomy terms pages etc. Go to this path for customize paths : admin/config/search/path/patterns

Second thing, for customize Taxonomy Term pages you have to enable Page Manager which is available in Ctools module and then go to the admin/structure/pages and then enable the default Taxonomy term template. After enabling, click on edit. It will open a panel page. Then add the view that you want to show on this panel page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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