1

Hi guys i hope you can help me with this, i made a vocabulary called Colors and inside this i have the terms: red, green, blue.

I was wondering, how can i make custom templates for each term, for example, for mysite.com/colors/red i want a different template than for mysite.com/colors/blue

I saw that it's possible for nodes, but don't know if it's possible for taxonomies. How can i do this?

Edit: for Drupal 7

  • which drupal version? – No Sssweat May 17 '16 at 4:20
  • Drupal 7 version – Elros Romeo May 17 '16 at 4:21
1

You can go with the following:

taxonomy-term--[term id].tpl.php You can get the term id number when you hover the edit button.

  • Thanks, i have to do anything more? add an extra function to template.php maybe? – Elros Romeo May 17 '16 at 18:05
  • thanks, it worked, just had to empty the cache. But there is a problem is not completely overrode, how can i make the template manually without displaying the text "No content for this term" ? – Elros Romeo May 17 '16 at 19:55

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.