4

I need to create only one tpl.php file for all taxonomy terms in my website. I know taxonomy_term_page.tpl.php will do the required function in Drupal6.

For drupal 7 I had override the taxonomy-term.tpl.php. I see all the nodes associated to a term, is displayed at the last.

How can I hide those nodes?

2 Answers 2

3

taxonomy-term.tpl.php is used in Drupal 7. You can find it in ROOT_DIRECTORY\modules\taxonomy\taxonomy-term.tpl.php. To override this template, copy it, place it in your theme template directory, and modify it. Don't forget to clear the cache to see the output from the modified template.

Do not modify any core files (including template files), in any case.

If you want to show only the details of taxonomy term then you can create a view of type 'Term referance' with suitable filter.

6
  • Please add more information regarding how to override tpl.. Otherwise OP will end up editing core file :-) It's very important to explain your answers in a Drupal way...
    – Anil Sagar
    Mar 20, 2014 at 9:10
  • To override tpl you can find detail information here drupal.org/node/1089656 Mar 20, 2014 at 9:41
  • I'm Still facing some problems. As i had override the taxonomy-term.tpl.php, i see all the nodes associated to a term, is displayed at the last. How can i hide those nodes?? Thanks in Advance... :)
    – Paulraj
    Mar 20, 2014 at 14:46
  • @user26647 Don't ask question in comment for solution. Edit the question, Ask what you want and what problem you facing to achive them
    – Rupesh
    Mar 20, 2014 at 15:44
  • Hi @Rupesh Thanks for ur response. I had modified my question. Please help me to find a solution. Thanks
    – Paulraj
    Mar 21, 2014 at 17:02
-1

To override tpl you can find detailed information in "Drupal 7 Template (Theme Hook) Suggestions".

1
  • Please enhance your answer to provide more details abut the "detailed information" that you think is relevant to answer this question ... Jul 29, 2015 at 21:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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