Active
Project:
Four Seasons
Version:
6.x-1.20
Component:
Miscellaneous
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2008 at 07:35 UTC
Updated:
24 Jun 2009 at 17:47 UTC
Jump to comment: Most recent file
Comments
Comment #1
cmgui commentedHi 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
Comment #2
cmgui commentedOk 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 $headerand viola, the header appears!
not really what i want though .... maybe have to read the Pro Drupal Development book ...
Comment #3
derjochenmeyer commentedHI 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.
Comment #4
CarbonPig commentedI'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:
Thanks,
The Carbon Pig
Comment #5
CarbonPig commentedI'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:
Thanks,
The Carbon Pig
Comment #6
CarbonPig commentedOK 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....
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
#header-image { background-color:print $language->language " lang="
print $language->language"if (isset($language->dir)) { print 'dir="'.$language->dir.'"'; }>print $head_titleprint $headprint '<div id="headerRegion">' .$header. '</div>';print $stylesprint $scriptsprint 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
Comment #7
CarbonPig commentedsorry 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.
Comment #8
JuJu_Kelly commentedThank 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
Comment #9
ivangut commentedIf you want download correct page tpl you can doawnload here ...
( with correct header )
You can remove admin widget and logo and ...
Comment #10
JuJu_Kelly commentedThanks 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.
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
#header-image { background-color:print $language->language " lang="
print $language->language"if (isset($language->dir)) { print 'dir="'.$language->dir.'"'; }>print $head_titleprint $headprint $stylesprint $scriptsprint 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 $headprint fourseasons_adminwidget($scripts);print '<div id="headerRegion">' .$header. '</div>';if (isset($primary_links)) :print theme('links', $primary_links, array('class' => 'links primary-links'))endif;if ($breadcrumb) { print $breadcrumb; } else { print '<div class="breadcrumb"><a href="#"> </a></div>'; }if ($left):if ($search_box):print $search_boxendif;print $leftendif;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 $contentprint $feed_iconsif ($right):if (!$left && $search_box):print $search_boxendif;print $rightendif;print $footerprint $footer_messageprint $closureComment #11
JuJu_Kelly commentedNo answer??? I have update the page.tpl to include
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