I've worked with drupal 5.x and 6.x and my share of themes. That being said, I can't update the node.tpl.php and make it display on my blog post.

For example, I modified the node-blog.tpl.php and it works great on the home page.

Next, I modify the node.tpl.php to move the $links to the bottom of the blog post. When I view a single blog article, the links are still at the top. I even hardcoded a word in html to show up for all nodes on the .tpl file but even that doesn't show up in the single blog posts. I'm at this for the second day and with updating other files and clearing the cache, it still doesn't make a difference.

I used firebug to check the tags and css location and properties and found the class=meta which I could find in the node.tpl.php but referenced stuff I couldn't find in the node.tpl.php.

Here is my modded file:

<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"><div class="node-inner clear-block">
  <?php if (!$page): ?>
    <h2 class="title">
      <a href="<?php print $node_url; ?>" title="<?php print $title ?>"><?php print $title; ?></a>
    </h2>
  <?php endif; ?>
  <?php if ($unpublished): ?>
    <div class="unpublished"><?php print t('Unpublished'); ?></div>
  <?php endif; ?>

  <div class="meta">
    <?php if ($submitted): ?>
	  <span class="submitted"><?php echo t('Posted on ').date("d. M, Y", $created).t(' by ').$name; ?></span>
    <?php endif; ?>
	</div>

  <div class="content">
    <?php print $content; ?>
  </div>
  <?php if ($terms): ?>		
	  <span class="terms"><?php print ' Tag: ' . $node_terms; ?></span>
    <?php endif; ?>   
  <?php if ($page): ?><?php print $links; ?><?php endif; ?>

</div></div> <!-- /node-inner, /node -->

Comments

codebutcher’s picture

Status: Active » Closed (fixed)

Ah, well I didn't look long enough at node-blog to see the "page" setting. Grumble, grumble. My fault. All is well.

sirijon’s picture

hi
i have same problem too, i dont understand "page" setting, please help me
thanks

codebutcher’s picture

Ok...
The page template file is the guts that run the whole theme - don't change that.
The way Fever works, it's the nod-blog tpl file you need to modify. In that file, there is a section that says (if $page) - the html tags within that if logic is what you change to change the layout for the list of nodes on a blog page.

sirijon’s picture

thanks a lot