0

Using Drupal 7 and Clean theme. And my main module is Views. And i want, create template tpl.php file for every page.

I know node id method but don't know how create tpl file for views pages.

Please help, thank you.

0

In the views ui, click on 'advanced' and go to 'theme information'. This gives you a number of suggestions for the template file and what code should be in it.

  • My views display output: views-view--news.tpl.php Now, i must put this file in templates directory? – Karmacoma Jun 14 '12 at 14:31
  • yep, '/sites/all/themes/YOUR_THEME/templates'. – Jason Norris Jun 14 '12 at 14:38
  • Sorry but not working. i want change header img every page. So, i want views id but not working. – Karmacoma Jun 14 '12 at 14:56
  • be sure to use the Rescan button in the Views UI > Theme information – Artur Jun 14 '12 at 15:09
  • You want to override the page template to change the header. Probably not going to do this with views. – Jason Norris Jun 14 '12 at 15:15

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.