Can't access node-taxonomy.tpl.php through page-taxonomy-term.tpl in Drupal 6 -


i literally cry i've been trying customize taxonomy page template in drupal 6 site.

what did

  • created page-taxonomy-term.tpl.php
  • created node-taxonomy.tpl.php
  • entered following code in template.php

     function templatename_preprocess_node(&$vars) {   if (arg(0) == 'taxonomy') {     $suggestions = array(       'node-taxonomy'     );     $vars['template_files'] = array_merge($vars['template_files'], $suggestions);   }  

my taxonomy page picking page-taxonomy-term.tpl.php correctly doesn't pick node-taxonomy.tpl.php , tried ...

any please :(

thanks

below few tips , attempts do:

  • if working on subtheme, copy node.tpl.php parent theme folder under subtheme (mandatory in drupal 6 themes).
  • try check if node-taxonomy suggestions correctly added in object $node. var_dump($node) inside main node.tpl.php , check if present.
  • last tips: check permission of file tpl, maybe not readable web server.

Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -