Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
waverate CreditAttribution: waverate commentedBump.
Comment #2
nagarajanl CreditAttribution: nagarajanl commentedIf 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
Comment #3
waverate CreditAttribution: waverate commentedYes, that is one possibility.
In essence, you could theme the Gallery or Photos pages from those.