Breadcrumb trail... ...or trial

Janne - July 10, 2007 - 11:14
Project:SEO Position
Version:5.x-1.x-dev
Component:Code
Category:support request
Priority:minor
Assigned:Unassigned
Status:active
Description

First off, I'd like to express my deepest gratitude for finally launching a 5.x version of this superior theme. I've been missing it ever since i upgraded Drupal.

Everything seems to work just fine. I had to recreate one block to get the title showing, but heck, I can live with that...

What I find a bit annoying, though, is to find the breadcrumbs at the bottom of the content area, instead of right above it. What can I do to move it to where I want it?

#1

Memeshift - December 22, 2007 - 04:07

I love this theme too:)

I figured it out. You'll need to edit the page.tpl.php file. I found the part where it says:

<?php if ($breadcrumb): print $breadcrumb; endif; ?>

and cut it out and then pasted it right after the <div id="content">

such as:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php print $language; ?>"><head>  <title><?php print $head_title ?></title>  <meta http-equiv="Content-Style-Type" content="text/css" />  <?php print $head ?>  <?php print $styles ?>  <?php print $scripts ?></head><body>    <div id="container">   <div id="main">       <div id="content"> <?php if ($breadcrumb): print $breadcrumb; endif; ?>  <?php if ($mission): ?>        <div id="mission">          <div id="missioncontent">          <?php print($mission) ?>          </div>     </div>        <?php endif; ?>            <?php if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif; ?>      <?php if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif; ?>      <?php if ($tabs): print $tabs .'</div>'; endif; ?>      <?php if (isset($tabs2)): print $tabs2; endif; ?>      <?php if ($help): print $help; endif; ?>      <?php if ($messages): print $messages; endif; ?> <?php if ($above_content): print $above_content; endif; ?>      <?php print($content) ?>            </div>      <?php if ($sidebar_top or $sidebar_left or $sidebar_right or $search_box or isset($secondary_links)): ?>      <div id="sidebar">        <?php if ($sidebar_top): ?>        <div id="bothcols">          <div id="bothcolscontent">            <?php print $sidebar_top; ?>          </div>        </div>        <?php endif; ?>        <?php if ($sidebar_left): ?>        <div id="leftcol">          <?php if (isset($secondary_links)) : ?>            <?php print theme('links', $secondary_links, array('class' => 'links secondary-links')) ?>          <?php endif; ?>          <?php print $sidebar_left; ?>        </div>        <?php endif; ?>                <?php if ($sidebar_right or $search_box): ?>        <div id="rightcol">          <?php if ($search_box): ?><div class="block block-theme"><?php print $search_box ?></div><?php endif; ?>          <?php print $sidebar_right; ?>        </div>        <?php endif; ?>      </div>      <?php endif; ?>    </div>    <div id="header">      <?php if ($site_name): ?><h1 class='site-name'><?php print $site_name ?></h1><?php endif; ?>      <?php if ($site_slogan): ?><h2 class="site-slogan"><?php print $site_slogan ?></h2><?php endif; ?>    </div>    <div id="nav">      <?php if (isset($primary_links)) : ?>        <?php print theme('links', $primary_links, array('class' => 'links primary-links')) ?>      <?php endif; ?>    </div>    <div id="footer">      <?php if ($footer_message) : ?><?php print $footer_message;?><p>Designed by <a href="http://www.seoposition.com">SEO Position</a> and <a href="http://blamcast.net">Blamcast</a></p><?php endif; ?>          </div> <div id="footershim"></div>  </div>  <?php print $closure ?></body></html>

hope that helps!

 
 

Drupal is a registered trademark of Dries Buytaert.