Closed (fixed)
Project:
Zen
Version:
6.x-2.0
Component:
layout.css
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2011 at 13:26 UTC
Updated:
21 Aug 2013 at 09:44 UTC
Hello,
I'd like to create a region under highlight region and over first sidebar, but unlike the existing region I don't want it to be over second sidebar (see attached image -http://drupal.org/files/regions.png - to see what I want to achieve).
I've been reading how to add a region in a zen subtheme and I've managed to do it. My problem is that I dont understand how does the main layout works, concerning to how sidebars are displayed.
I've made a search in the issue queue with no success at all.
Can anyone help me with this, please?
Thank you
| Comment | File | Size | Author |
|---|---|---|---|
| regions.png | 16.19 KB | c-c-m |
Comments
Comment #1
komal.savla commentedHi,
For your layout here is what we need to do
we will have to print three different divs in the page.tpl.php to get the required layout.
1)First div will be highlighted region
2)In the Second div print the new region ,first sidebar and content
3) And the third div will be the second sidebar
Here is the sample of code that you could use in your page.tpl.php
Then using firebug you can give the css (i.e width, margin and padding)
Here is the sample css
Thanks,
Komal
Comment #2
c-c-m commentedWow, thanks! I'll look at it carefully and let you know.
Comment #3
c-c-m commentedHum... I've been looking your code and I see you print the first sidebar before the content. I'm sure this will work, and that's the way I would do that, however, Zen uses a different Layout method that prints sidebars after content but displays them correctly, which is better in SEO terms (http://drupal.org/node/201428).
However, my knowledge of both CSS and PHP is quite basic and I cannot understand how does that work in order to make the required modifications to adjust regions as I want to do :(
Thank you very much anyway. If I can't find any other solution I'll try with this one (in fact I'm implementing it now).
Regards
Comment #4
barrapontoAs far as I can see, this would require knowing beforehand the height of the highlight region, then using the same technique applied to Zen's navigation region. I wouldn't know how to do it otherwise, unless we start heavily changing the markup.
Comment #5
c-c-m commentedThanks for your help.
My problem is that I haven't found any documentation about the technique used in Zen for layouting the theme (only this page http://drupal.org/node/201428 which says 'Zen theme is based on the mostly undocumented “Zen Columns” layout method.') Does anybody know more about this method?
Regards
Comment #6
johnalbin