How can I theme the taxonomy/term/x page?

In Drupal 6, you can make use of node-taxonomy.tpl. Php and page-taxonomy-term.tpl. Php files in your theme to template taxonomy pages considering that the second one is the wrapper for the first.

Behave node-taxonomy.tpl. Php like node.tpl. Php and page-taxonomy-term.tpl.

Php like page.tpl. Php for example: page-taxonomy-term.tpl.php.

In Drupal 6, you can make use of node-taxonomy.tpl. Php and page-taxonomy-term.tpl. Php files in your theme to template taxonomy pages considering that the second one is the wrapper for the first.

Behave node-taxonomy.tpl. Php like node.tpl. Php and page-taxonomy-term.tpl.

Php like page.tpl.php. For example: page-taxonomy-term.tpl. Php "> Taxonomy term page '; endif;?

> '. $title . ''; endif;?

> '. $tabs . ''; endif;?

> '. $tabs2 . ''; endif;?

> node-taxonomy.tpl. Php nid;? >" class="node"> " title=""> field_cck_blah0'view';?

> Well, I've forgot to inculde the most important part, so it was getting negative points! Node-taxonomy.tpl. Php is not known for drupal by default so we have to introduce this as a template suggestion in the template.

Php file of the theme, here we go: /** * Adding custom PHPTemplate suggestions on taxanomy pages. * * @param $vars * A sequential array of variables to pass to theme template. */ function phptemplate_preprocess_node(&$vars) { if(arg(0) == 'taxonomy'){ $suggestions = array('node-taxonomy'); //So, node-taxonomy.tpl.

Php will be known afterwards. $vars'template_files' = array_merge($vars'template_files', $suggestions); } } Also there is a taxonomy-term.tpl. Php, regarding Drupal 7.

Dont' forget to use check_plain() & check_url() on data outputs.

Thanks Sepehr! This works, but all of my views blocks on the page get the same formatting treatment... (they are displayed as node teasers) Is there a way stop from destroying my views? – askon Jun 20 '10 at 19:20.

The taxonomy page is not magic in any that it requires something special to theme it. There's a template file, a preprocess function and some theming functions, much like any page. If you would like to control the output of the default taxonomy page which is a bit raw, you can use views to overwrite the default page.

You could then use views to only show node teasers, do some custom ordering, use a pager etc. If you want to do something more specific you should edit your question to tell us what you want to do.

Page-taxonomy-term.tpl. Php is working but node-taxonomy.tpl. Php is not working.

Using phptemplate_preprocess_node() in your theme's template. Php file will give you the ability to add node-taxonomy.tpl. Php to template suggestions, take a look at my updated answer.

Also consider to comment below the answers instead of adding an answer as a comment ;) – Sepehr Lajevardi Apr 25 '10 at 9:33 This is not an answer to the question being asked. – kiamlaluno Jan 28 '11 at 10:54.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions