Node titles disappear

albertc - December 17, 2007 - 11:38
Project:Blog Information
Version:5.x-2.4
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I'm using bloginfo in my site and it sucessfully replaces the blog standard name with anything I put in the appropriate fields in the user's profile, including header images.

However, I've noticed that the node titles disappear when bloginfo is enabled. Not in the blog home page, listing the recent posts, but in the node full view, where the blot title is followed by the node text, without the node title. Can somebody help to re-enable titles?

Thank you

#1

mfer - December 17, 2007 - 15:12
Category:bug report» support request

The module doesn't remove titles. It adds a block with your information. There seems to be something else going on here.

Do you have a blog.tpl.php page? Or, a node.tpl.php page? In there do you have $title set to display when you are no in a node listing?

#2

albertc - December 17, 2007 - 16:45

Hi

No, there's no blog.tpl.php in my theme, yet. Here's my node.tpl.php:

  <div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
    <?php
   
if ($picture) {
      print
$picture;
    }
?>

    <?php if ($page == 0) { ?><h2 class="nodeTitle"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
    <?php if ($terms) { ?><div class="taxonomy"><?php print $terms?></div><?php } ?>
    <span class="submitted"><?php print $submitted?></span>
    <div class="content"><?php print $content?></div>
    <?php if ($links) { ?><div class="links"><?php print $links?></div><?php }; ?>
  </div>

#3

mfer - December 17, 2007 - 20:59

There's the problem. Your node.tpl.php file is saying to only show a title on lists and not so show them when it's a full page. You should do something like this to have it be in both places.

  <div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
    <?php
   
if ($picture) {
      print
$picture;
    }
?>

    <?php if ($page == 0) { ?><h2 class="nodeTitle"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php } ?>
    <?php else { ?><h2 class="nodeTitle"><?php print $title?></h2><?php } ?>
    <?php if ($terms) { ?><div class="taxonomy"><?php print $terms?></div><?php } ?>
    <span class="submitted"><?php print $submitted?></span>
    <div class="content"><?php print $content?></div>
    <?php if ($links) { ?><div class="links"><?php print $links?></div><?php }; ?>
  </div>

#4

yettyn - October 15, 2008 - 21:08
Status:active» fixed

As there hasn't been any response, and a solution was given, and this wasn't a problem with bloginfo per se in the first place... I set this as fixed as a solution was given that probably fixed it. I assume albertc was just too busy at the time with Christmas preparations so he forgot to say thanks ;-)

#5

Anonymous (not verified) - October 29, 2008 - 21:12
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#6

albertc - November 15, 2008 - 20:18

Uh, sorry, I actually expected that Drupal would notify me about any replies to my request. Obviously I'm very grateful for the fix, even if I stopped using the module a while ago. Keep up the good work, anyway.

 
 

Drupal is a registered trademark of Dries Buytaert.