Blocks in content region all come under tabs and title

Events happening in the community are now at Drupal community events on www.drupal.org.
ridefree's picture

Hi all,

Apologies if this is covered somewhere else, I've been looking for a few hours and haven't figured this out yet. Using d7 omega|alpha sub theme of my own..

I basically have 2 regions in the one zone.
Content and sidebar

I understand that the method Is to put blocks inside the region, which I have done and it kind if works, except that the way the template is set up, the title appears first, then the view|edit tabs, then the blocks I've added and then the content.

The blocks I've added contain the menu and header, which according to the design, need to be to the left of the sidebar wih the content and not above the sidebar .. Which would happen if I put them in different zone|regions.

I can put the title inside the node.tpl, but the tabs won't work there.

I suspect what I need is a way in the region--content.tpl file to have it display regions before it prints out the tabs.

I've tried the preprocessing functions for nested regions, but still don't seem to be getting the results I want. I.e. for two blocks to appear in the content region before the title and tabs.

Any help would be appreciated.
Thnx
Brian

Comments

Can you provide a link to a

roblav's picture

Can you provide a link to a screen shot of the design, to get a better idea of what you need?

By default with out changing it in your custom theme the action tabs i.e. view edit would appear beneath the page title, I take it you need them to appear elsewhere on the page.

Hey roblav . Thnx for the

ridefree's picture

Hey roblav . Thnx for the response
It currently sits at http://dev.oy.anarres.ca/working-groups as an example

I'm just on a mobile, can do a screen shot when I get back to office later.

Essentially, what you see there is two regions: content & sidebar
The content has two blocks in it: logo & menu

I've hacked it to make it look like I want kinda.

What was happening was that in the content region the content would be:

Title
Tabs
Logo
Menu
Rest of content

When I wanted it as:
Logo
Menu
Title
Tabs
Rest of content

My hack was to push the title rendering into the node.tpl
And to mve the tabs below the content in the region--content.tpl

Make sense?

Ok, I think I understand what

roblav's picture

Ok, I think I understand what you're wanting now. I'll see if I can test it out and see what I come up with. It seems a little over kill that you'ed need to do any work in template files. You should be able to manage this through the Drupal UI.

Yeah I figured I must just

ridefree's picture

Yeah I figured I must just not be understanding something obvious, as it didn't seem like that crazy of a design configuration ;)
Appreciate the help

Omega Sub-Theme 2 column layout

roblav's picture

This is assuming that you're using a sub-theme generated using Omega tools so you're using the default Omega template files. If you've rolled your own theme, and you've changed the template files, which it sounds like you have, you may have to clean up your template files, or remove some of the variables you've added, for this to work.

Omega theme settings

Toggle display - Uncheck 'Main menu' & 'Secondary Menu'

Also, uncheck all elements in 'Toggle advanced elements'.

Omega Layout

I'm going to assume this is a auto generated Omega sub-theme so has all available Zones and regions but that we're only interested in the Content Section and 2 regions in there, the Content and Sidebar second. If you've rolled your own theme then you may only have those 2 regions available anyway.

Here's the problem, we use blocks to place content within regions. The theme logo, site name, aren't available as blocks to be positioned. That's why we need the Delta module.

http://drupal.org/project/delta

This comprises of several modules, the one we're interested in is the Delta Blocks.

As the description for the module says 'Exposes a number of core Drupal elements as blocks.' This means that the elements we're interested in positioning on the page, the page title, the theme logo, site name, tabs etc. are now available as blocks.

Omega Framework

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week