Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi - I am loving the possibilities of Omega 4 it looks very good although the learning curve I am finding to be very steep what with the current lack of documentation.
Anyway I am hoping someone could advise me on the best way to add new regions? I want a region called 'admin sidebar' to go outside of the rest of the page?
Thanks in advance
Comment | File | Size | Author |
---|---|---|---|
#2 | added-region.png | 8.66 KB | leovw |
Comments
Comment #1
airsosa CreditAttribution: airsosa commentedIf you could do a little more explanation I believe I could be of help. If possible a sketch of what you hope to achieve, like the position of your admin sidebar wrt to the rest of the page
Comment #2
leovw CreditAttribution: leovw commentedHi thanks for your help
Attached is the position of the sidebar - I have tried to add it to a custom layout but it currently isn't being rendered?
Comment #3
samwillc CreditAttribution: samwillc commentedsimple.layout.inc has the following:
and an accompanying 'simple-layout.tpl.php'
Can you not add a region to 'simple.layout.inc' and then also add it to the html in 'simple-layout.tpl.php'?
Like so:
I thought that's all you needed to do (adjust the filenames etc. for your actual layout). Although, I am not sure now what the point is for a 'mytheme.info' file if regions are defined in this layout folder instead.
Maybe you've already tried this but you didn't include any code you've attempted. Some instructions would be most welcome for this theme though that's for sure!
Comment #4
fubhy CreditAttribution: fubhy commentedYou have to define the region in the mytheme.info file too
Comment #5
samwillc CreditAttribution: samwillc commentedAnother piece of the puzzle! Thanks.
Comment #6
fubhy CreditAttribution: fubhy commentedTake a look at what Ohm does in the ohm-hero layout.
Comment #7
samwillc CreditAttribution: samwillc commentedHave done, thanks for the pointer.
Comment #8
fubhy CreditAttribution: fubhy commented