Closed (fixed)
Project:
Fusion
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 May 2011 at 11:54 UTC
Updated:
28 Jun 2011 at 21:31 UTC
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
Comment #1
aquariumtap commentedHi 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.
Comment #2
stephthegeek commentedDid this work for you?
Comment #3
Poieo commentedYep...sorry for the late response. I ended up with:
That allowed me to style the breadcrumb full-width, but contain the actual content of the breadcrumb to the width of the site.