Hi derjochenmeyer

I have the same problem as this: http://drupal.org/node/247792

The header block is nowhere to be found in Administer->Site Building->Blocks

I am using the latest Drupal 6.4 and the latest Four Seasons 6.x-1.20

Thank you.

Gui

CommentFileSizeAuthor
#9 page.tpl_.php.txt4.53 KBivangut
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cmgui’s picture

Hi derjochenmeyer

can you show me how to fix this?
i cannot wait for the next version to have it fixed.

thank you very much for coming up with such a good theme.
if the secondary links can be a pulldown menu, that would even be better.

regards

gui

cmgui’s picture

Ok this is what i figured out ... hope it is useful to somebody facing the same problem

vi fourseasons.info

regions[header] = Header

vi page.tpl.php

print $header

and viola, the header appears!

not really what i want though .... maybe have to read the Pro Drupal Development book ...

derjochenmeyer’s picture

HI zzzzsg, thanks for posting all this and for posting the solution. Its not a bug. fourseasons simply has no header region. If you modify the code you posted a bit you can specifically style your header region.

<?php
print '<div id="headerRegion">' .$header. '</div>';
?>
CarbonPig’s picture

I'm having trouble getting this solution to work.

Can you provide the location of where to put the following in the page.tpl.php file, as I've tried it in a number of locations and haven't been able to get it to work:

print '<div id="headerRegion">' .$header. '</div>';

Thanks,

The Carbon Pig

CarbonPig’s picture

I'm having trouble getting this solution to work.

Can you provide the location of where to put the following in the page.tpl.php file, as I've tried it in a number of locations and haven't been able to get it to work:

print '<div id="headerRegion">' .$header. '</div>';

Thanks,

The Carbon Pig

CarbonPig’s picture

OK figured it out.

For new themers like myself it is important to know that the .info file is cached in the database by drupal, so if you simply change your .info file to create a new theme, FTP it over, and then try to refresh, you won't be able to select the region in the admin-->blocks portion. You have to first do one of three option outlined in: http://drupal.org/node/171224

"# The contents of the .info file is cached in the database so altering it will not be noticed by Drupal. (Do not confuse this with the theme registry.) To clear it, do one of the following:

1. Clear button located at "Administer > Site configuration > Performance".
2. With devel block enabled (comes with devel module), click the "Empty cache" link.
3. Simply visit the theme select page at "Administer > Site building > Themes"."

Also, in the page.tpl.php, here is where I pasted the above solutions in order to get it working....

// $Id: page.tpl.php,v 1.7.2.9 2008/06/08 23:00:25 derjochenmeyer Exp $

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
print $language->language " lang=" print $language->language " if (isset($language->dir)) { print 'dir="'.$language->dir.'"'; } >

print $head_title
print $head
print '<div id="headerRegion">' .$header. '</div>';
print $styles
print $scripts

#header-image { background-color: print theme_get_setting('fourseasons_basecolor') ; if(theme_get_setting('fourseasons_basecolor') != '#FF9900') print 'background-image:none;' } h1, h2, h3, h4, h5, #headline a { color: print theme_get_setting('fourseasons_basecolor') ; }

Hope this really helps some folks out there.

-The Carbon Pig

CarbonPig’s picture

sorry it was messy, just assume that all the boxes with code in the previous posting are the continuous code in the page.tpl.php file.....just look at yours and that code for a minute and it should make sense.

JuJu_Kelly’s picture

Component: Code » Miscellaneous
Category: bug » support

Thank you Carbon Pig for specifying where to put the above code. I am trying to be able to access the header block so I can customize headers...I am trying to use the Theme Editor Module to edit the page.tpl and I have tried to put the above code but when I do & I click save it shows code on the page. Am I doing something wrong?
FYI-I am new to drupal but love my Four Seasons theme.
Thanks in advance

ivangut’s picture

FileSize
4.53 KB

If you want download correct page tpl you can doawnload here ...
( with correct header )
You can remove admin widget and logo and ...

JuJu_Kelly’s picture

Thanks but i am still having problems. I have uploaded the following and saved it as page.tpl but when I go to the site building Blocks I am still no seeing header in the header area. I just want to be able to easily edit the content in the header section page by page. I am showing Left sidebar, right sidebar, content & Footer but no header. Am I missing something? I have cleared the Cache. Am I supposed to do anything with any of the other files in the Theme Folder? The following is the code I got from the above post.

// $Id: page.tpl.php,v 1.7.2.9 2008/06/08 23:00:25 derjochenmeyer Exp $

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
print $language->language " lang=" print $language->language " if (isset($language->dir)) { print 'dir="'.$language->dir.'"'; } >

print $head_title
print $head
print $styles
print $scripts

#header-image { background-color: print theme_get_setting('fourseasons_basecolor') ; if(theme_get_setting('fourseasons_basecolor') != '#FF9900') print 'background-image:none;' } h1, h2, h3, h4, h5, #headline a { color: print theme_get_setting('fourseasons_basecolor') ; }

print phptemplate_body_class($left, $right); >

print $head

print fourseasons_adminwidget($scripts);

print '<div id="headerRegion">' .$header. '</div>';

      if ($site_slogan) {
        $site_slogan = '<div id="site-slogan">'.$site_slogan.'</div>';
      } 
      else {
        $site_slogan = '';
      }
      
      if ($logo || $site_name) {
        print '<a href="'. check_url($base_path) .'" title="'. $site_name .'">';
        if ($logo) {
          print '<img src="'. check_url($logo) .'" alt="'. $site_title .'" id="logo" />';
        }
        print $site_name .'</a>';
        print $site_slogan;
      } else {
        print '<div style="clear:both; height:20px;"></div>';
      }
    
    foreach($primary_links as $key => $value ) {
      if (ereg('active', $key)) {
        $primary_links[$key]['attributes']['class'] = "active";
      }
    } 
  
      if (!empty($mission)) {
        print '<div id="site-mission">'.$mission.'</div>';
      }
    

if ($left):

endif;

if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif;
if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif;
if ($tabs): print '<ul class="tabs primary">'. $tabs .'</ul></div>'; endif;
if ($tabs2): print '<ul class="tabs secondary">'. $tabs2 .'</ul>'; endif;
if ($show_messages && $messages): print $messages; endif;
print $help;

print $content

print $feed_icons

if ($right):

endif;

print $closure


JuJu_Kelly’s picture

No answer??? I have update the page.tpl to include

print '<div id="headerRegion">' .$header. '</div>'; 

just like above, I have claer the cache but still no luck. Am I missing something.
I really need the Header regoing to show up when I go to blocks so I can put other stuuf in the header region.

Thanks in advance