1) Installed:
function aquia_prosper_preprocess_page(&$vars) {
// custom content type page template
// Renders a new page template to the list of templates used if it exists
if (isset($vars['node'])) {
// This code looks for any page-custom_content_type.tpl.php page
$vars['template_files'][] = 'page-'. str_replace('_', '-', $vars['node']->type);
}
}
into template.php file of aquia prosper subtheme ...
2) Created content type machine named 'videodisplay'
3) Created an instance of the content type .... (video)
4) Created a custom page template 'page-videodisplay.tpl.php // I removed headers and footers and everything except the content area to print the custom video content - node loads in a lightbox so headers, etc and not desired.
5) Cleared cache ....
6) Custom template does not load up ....
Ideas for developing a custom page template?
Thank you ....
Comments
Comment #1
sheena_d commentedNothing in the Acquia Prosper or Fusion themes would prevent you from using the usual methods of suggesting new theme templates. If the node is loading in a lightbox, then whatever method you are using to render that lightbox may be bypassing the usual Drupal page theming. Have you tested whether the template works without rendering the node in a lightbox?