As far as I am dealing correctly with Omega Theme, it seems to me that something is missing for complete easy configuration of regions positioning. I cannot move breadcrumb and system messages as I want using the configurable zones and regions from admin/appearance/settings/my-theme (Zone and regions configuration tab). I took a look in templates and could notice that div id="breadcrumb" and div id="messages" are not wrapped in a dedicated region that could be configurable : they are directly wrapped in a zone, at the same level than regions. My problem is that I would like to move breadcrumb to the right (something like "prefix-3") inside a 24-columns Content Zone (see attached file). At this moment, it seems not possible with the native regions configuration system of Omega. It is a pity because Omega is so powerfull with all other regions/zones EXCEPT breadcrumb and messages.

Did I miss something ?

CommentFileSizeAuthor
omega_breadcrumb_messages.png139.45 KBlektum

Comments

kylejaster’s picture

I believe the correct way of doing this is to create a process-zone.inc file in YOURCUSTOMTHEME/process/ directory, then add (in the example I'm using the header zone)


<?php /**
 * Implements hook_process_zone().
 */
function YOURCUSTOMTHEME_alpha_process_zone(&$vars) {
  $theme = alpha_get_theme();
  
  if ($vars['elements']['#zone'] == 'header') {
    $vars['messages'] = $theme->page['messages'];
    $vars['breadcrumb'] = $theme->page['breadcrumb'];
  }
}

then add the references to breadcrumb and messages into your zone-header.tpl.php file:

<?php if ($wrapper): ?><div<?php print $attributes; ?>><?php endif; ?>  
  <div<?php print $content_attributes; ?>>      
    <?php if ($messages): ?>
      <div id="messages" class="grid-<?php print $columns; ?>"><?php print $messages; ?></div>
    <?php endif; ?>
    <?php print $content; ?>
	<?php if ($breadcrumb): ?>
      <div id="breadcrumb" class="grid-<?php print $columns; ?>"><?php print $breadcrumb; ?></div>
    <?php endif; ?>
  </div>
<?php if ($wrapper): ?></div><?php endif; ?>

Hope this helps!

Argus’s picture

Are you familiar with Blockify?

heyyo’s picture

Or the sub module "delta blocks" http://drupal.org/project/delta

Woggers’s picture

@Kyle-Jaster

THANK YOU SIR! This worked perfectly for what I needed!

Argus’s picture

Status: Active » Closed (works as designed)
toastytheog’s picture

Just had to do this on one of my sites. Blockify is definitely the easiest route to take.