I need to create a custom page for a view. I've tried naming the file page--tryout.tpl.php (tryout is the name of the view.)

With content types this works fine. There must be something else I need to do.

The URL is node/%/tryouts so I can't use the URL for the page title like I've seen others suggest.

Any help would be greatly appreciated. I have tried clearing cache and doesn't solve the problem.

Thank you.

Comments

nevets’s picture

You want to use the path (not the view name), so if you view is at the path 'xyz', page--xyz.tpl.php, if your path was 'part1/part2', the template would be page--part1-part2.tpl.php. For more detail see Drupal 7 Template (Theme Hook) Suggestions, search down for page.tpl.php.