How do I make a complex grid layout with the Omega theme where regions can be embedded in regions? I included an image of how I want the page layout to be set. Right now I'm thinking that I will use the CSS property in the Views UI to manually set the grid-[columns] and alpha or omega properties of the Views block. Is there a better way of doing this so the code is in a logical place and not a hack?

Comments

kevin-bcr’s picture

I am also interested in this; subscribe.

Adam S’s picture

Adding CSS to the View didn't work. The CSS needs to be added to the block. So using the block css module would do this or in my case wrapping the block content in a div using hook_block_preprocess() in a custom module.

For example:

function helper_preprocess_block(&$vars) {
  
  if ($vars['block']->delta == "50a597852ade9b54514cbd206a5baa2a") {
    $vars['classes_array'] = array_merge($vars['classes_array'], array('grid-5 alpha'));
  }
  
  if ($vars['block']->delta == "50a597852ade9b54514cbd206a5baa2a") {
    $vars['classes_array'] = array_merge($vars['classes_array'], array('grid-4 omega'));
  }

}
Steven_NC’s picture

I am interested in a similar design layout. Is this the most simple way to have multiple blocks inline?

Argus’s picture

Status: Active » Closed (duplicate)