I'm trying to create a breadcrumb region that spans the full-width of the page. If I use

<?php print theme('grid_block', array('content' => $breadcrumb, 'id' => 'breadcrumbs')); ?>

I have to add extra wrappers around the breadcrumb to center it up on the page create 4-6 div tags around it and some redundancy. However, if I try to use

<?php print render($page['breadcrumb']); ?>

which I would think is the proper method, to treat it as a 'row', nothing is printed.

What would be the best way to implement breadcrumbs that span the full-width of a page rather than being enclosed in the main content area?

Comments

aquariumtap’s picture

Hi Poieo, I think you want $breadcrumb, not $page['breadcrumb'].

If you want to span the full width of the page, make sure the breadcrumb isn't wrapped in one of these div patterns:

  • <div id="{region-name}-wrapper">
  • <div id="{region-name}">
  • <div id="{region-name}-inner">

You'll see that pattern over and over in Fusion, and that's what constrains and centers content. The breadcrumb should avoid being nested inside those divs in order to span the full width.

stephthegeek’s picture

Status: Active » Postponed (maintainer needs more info)

Did this work for you?

Poieo’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Yep...sorry for the late response. I ended up with:

<div id="breadcrumbs-wrapper" class="breadcrumbs-wrapper full-width">
  <div id="breadcrumbs" class="breadcrumbs region <?php print $grid_width; ?>">
    <div id="breadcrumbs-inner" class="breadcrumbs-inner inner clearfix">
      <?php print render($breadcrumb); ?>
    </div><!-- /breadcrumbs-inner -->
  </div><!-- /breadcrumbs -->
</div><!-- /breadcrumbs-wrapper -->

That allowed me to style the breadcrumb full-width, but contain the actual content of the breadcrumb to the width of the site.