4

Struggling To Load Region In Them Via node-story.tpl file

http://drupal.org

Thanks for your time.

Basically, I am trying to learn how to display a new region (left sidebar) in the 'story' page (which displays the post content). I noticed that if I add the css for left sidebar (the template does not have this region initially)
in pages.css and add this to page.tpl:

   <div id="sidebar-left" class="sidebar">
  <?php print $left ?>
        </div><!-- /sidebar-left -->
    
       

the page.tpl page loads my left navigation content perfectly.

But when I try to add that code to the node-story.tpl, so I can see the left navigation load in the story node/content page, it is not recognized. Meaning, the $left variable won't load. In short, I want the left nav and content (a test ad in the 'ad module) to load in the node story page as it does for the page.tpl page.

For the record, I updated the theme's .info file, I went into the 'blocks' admin page and placed the block I want to load in the left sidebar region (an ad, testing the ad module) and saved the settings. So, it works on the page that displays all headlines/story summaries but when I click on a headline, nada.

What am I missing? I edited the node.css file, added the 'sidebar-left' code, that you see above, to the node-story.tpl file. Nothing

I hope I can fix this.

Thanks.

- Joel

Read »
Created by Dplanet 18 weeks 11 hours ago
Category: Theming   Tags:

PSD to Drupal Theme

Drupal Development

Module Development

Get an Estimate

Tags for Struggling To Load Region In Them Via node-story.tpl file

Recent comments