Closed (fixed)
Project:
Fusion
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2011 at 10:19 UTC
Updated:
13 Feb 2012 at 13:48 UTC
Hello,
By default, fusion theme has a region called "Preface bottom" which is placed over content only and second sidebar only. I would like to change it in order that this region would be moved to the left, so it would be placed over first sidebar and content but NOT over second sidebar (just like this: http://drupal.org/files/issues/regions_3.png).
I copied fusion's page.tpl.php to my subtheme folder so I can change where this region is printed but unfortunately I don't succeed with it.
Can anyone help me with this?
Thank you
Can
Comments
Comment #1
c-c-m commentedI'll post the solution provided by Sheena_d at IRC Channel which has been both helpful and useful. Hopefully it will help others in the future, as much as it has helped me:
1. First step is to move the sidebar first region. Copy page.tpl.php from Fusion core into your theme, or edit the page.tpl.php file already in your theme.
//Currently, sidebar first is printed out in this context:
//Move the line of code that prints sidebar-first, so that the chunk of code is now organized like this:
2. The second step is to move the sidebar-last region.
//Currently, sidebar last is printed out in this context:
//Move the line of code that prints sidebar-last, so that the chunk of code is now organized like this:
3. The last step is to add the following code to your template.php file. This reverses the way the preface bottom and postscript top widths are calculated. Create a blank file in your subtheme's root folder, name it template.php and paste the following function:
Comment #2
c-c-m commentedComment #4
mshepherd commented*** this isn't correct at the moment
*** I'll update once fixed
The process for Fusion 2 on Drupal 7 is similar for the page.tpl.php file, but you'll be looking for render() functions instead of theme() functions. And sidebar_second instead of sidebar_last.
The changes in template.php aren't relevant, but make these changes to your theme.info file:
Change 1
which calculates the preface_bottom width. It would have been full width - sidebar_first width and this needs changing to full width - sidebar_second width.
settings[grid_adjusted_regions][preface_bottom][] = sidebar_firstchange to:
settings[grid_adjusted_regions][preface_bottom][] = sidebar_secondChange 2
which replaces sidebar_first with sidebar_second in the main group.
settings[grid_adjusted_groups][main_group][] = sidebar_firstchange to:
settings[grid_adjusted_groups][main_group][] = sidebar_secondPerhaps someone from topnotch could confirm this?
Comment #5
esmerel commentedthings that are accurate for 6.x have a very good chance of not being accurate for 7.x, especially when the theme itself has undergone a major change - please do not reopen issues that have been closed for a previous major release.
Comment #6
sheena_d commented