You are here:  » Breadcrumbs on template with sidebar

Support Forum



Breadcrumbs on template with sidebar

Submitted by marco@flapper on Tue, 2011-02-01 13:18 in

Hi,
I'm trying to implement the sidebar from this thread:
http://www.pricetapestry.com/node/2098#comment-11641

It works but I want to change two things:
1. The breadcrumb is now like "Home » Merchant" but I want it like "You are here: Home / Merchant"
2. I'm using a template that allready has a sidebar (seperate sidebar.php with layout: sidebar left/content area right). The breadcrumbs are now above the sidebar. Tried looking for menu.php in the code but couldn't find it. How can I implement it so it is only above the content area?

example link: {link saved}

Submitted by support on Tue, 2011-02-01 13:33

Hi Marco,

Can you check your .htaccess in the /nintendo/ installation - the site currently has $config_useRewrite = TRUE, but I am getting 404 looking at

http://www.example.com/nintendo/merchant/

Make sure .htaccess exists in /nintendo/ with line 5 changed to:

RewriteBase /nintendo/

With that working, if you could email me your html/header.php and html/sidebar.php (I assume you have added the breadcrumb code in sidebar.php) I'll take a look for you re: the above...

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Tue, 2011-02-01 14:07

I mailed you the header and the sidebar.php.
I put the breadcrumb code in a separate menu.php which is exactly the same code as in the link describing it.

Submitted by marco@flapper on Tue, 2011-02-01 17:58

Thanks, the changes in header.php work.

Submitted by marco@flapper on Tue, 2011-02-01 18:44

Hi,
I noticed the breadcrumb links need to be adapted. I moved it a folder up (see link:
http://www.pricetapestry.com/node/3773 )

I tried to change

$crumb1HREF = $config_baseHREF.($config_useRewrite?"merchant/":"merchants.php");
to
$crumb1HREF = $config_baseHREF.(/merchant/":"merchants.php");
but that didn't work.

And the $config_baseHREF goes to the pricetapestry folder that is one folder below the top level. Should I just change line:

<a href='<?php print $config_baseHREF?>'><?php print translate("Home"); ?></a>

to?

<a href='http://www.mywebsite.com'><?php print translate("Home"); ?></a>

Submitted by support on Tue, 2011-02-01 18:50

Hi Marco,

Throughout the breadcrumb code, just REPLACE

$config_baseHREF

with:

"/"

...and that should be all you need to do.

Cheers,
David.
--
PriceTapestry.com

Submitted by marco@flapper on Wed, 2011-02-02 06:38

Thanks, that was all that was needed.