I would have thought this was easy but I can't figure it out. I have a page.tpl.php for my installation of:

<?php
if ($node->type == 'blog') {
    include 'page-blog.tpl.php';
    return; }
include 'page-default.tpl.php';
return;
?>

I would like to remove the <h1> header on my page by theming page-gallery.tpl.php (or page-photo.tpl.php).

What is the preferred conditional statement that I should use to specify this template? Obviously, the Gallery albums and photos aren't Drupal nodes.

Comments

waverate’s picture

Bump.

nagarajanl’s picture

If i understand you correctly, then u can do set a a predefined variable called as $headertitle with template_preprocess_page. You can either show or hide this template based on the gallery type etc

waverate’s picture

Yes, that is one possibility.

In essence, you could theme the Gallery or Photos pages from those.