I am trying to create a custom Termonomy Termress page in Drupal 7. I created a page file - taxonomy.tpl.php in my templates folder. The file only displays a message. Now I'm trying to get the template file to add
function template_preprocess_page($variables) {
if (arg(0) == 'taxonomy') {
$variables['template_file'] = 'page--taxonomy-tpl';
}
}
in the template.php file, but this will not work. Could you help me? And if I get a custom page, how do I get nodes with this term (on the page - taxonomy.tpl.php)? Thanks in advance.
user328146
source
share