I have a view called "video_by_category" with a path of "video/category/%" the % is looking for a taxonomy term. A term can be "car". I want to create a custom page template for this view similar to page.tpl.php. I made some theme suggestions like page-video-category, page-video_by_category.tpl.php, page-views-view-video-category.tpl.php, but nothing is working. How can this be done?
In my template.php I have this:
function theme428_preprocess_page(&$variables) {
if ($variables['node']->type != "") {
if (arg(0)=='node' && arg(2)!='edit') { // not for node edit forms
if(arg(1)!=''){
$arg1='-'.arg(1);
}
//$variables['template_files'][] = "page-node-" . $variables['node']->type.$arg1;
$variables['template_files'][] = "page-node-" . $variables['node']->type;
}
}
//print_r($variables['template_files']);
$variables['scripts'] = drupal_get_js();
return $variables;
}
thanks