Jump to content

Visible breadcrumbs on all but one category


Recommended Posts

There are breacrumbs showing on all categories, except for one. I checked the category to see if it was placed in the root (home) as the others are, and it was.

 

And I don't see anything wrong in the breadcrumb.tpl - do you? :/

 

<!-- Breadcrumb -->
{if isset($smarty.capture.path)}{assign var='path' value=$smarty.capture.path}{/if}
<div class="breadcrumb">
<div class="breadcrumb_inset">
<a class="breadcrumb-home" href="{$base_dir}" title="{l s='Return to Home'}">
<i class="icon-home"></i>
</a>
{if isset($path) AND $path}
<span class="navigation-pipe" {if isset($category) && isset($category->id_category) && $category->id_category == 1}style="display:none;"{/if}>{$navigationPipe|escape:html:'UTF-8'}</span>
{if !$path|strpos:'span'}
<span class="navigation_page">{$path}</span>
{else}
{$path}
{/if}
{/if}
</div>
</div>
<!-- /Breadcrumb -->
Link to comment
Share on other sites

Can't spot anything offhand that might be wrong with it, no..

 

If you want to debug it a little, try changing the <!-- Breadcrumb --> to be:

 

<!-- Breadcrumb {var_dump($smarty.capture)}  -->

 

Then if you view the source on the category page that's missing it, it should have a little printout of what is inside that variable, might help figure out what's going on

Link to comment
Share on other sites

Thank you. 

I checked it and it was on display: none. It is also inside the center_column, instead of like on the other categories that are above center_column. So even if I force it to display it won't have the right placement. So weird. :S 

Link to comment
Share on other sites

Is the id of the category 1? I'd ruled that out as it should just be the root category in that case, far as I'm aware .. but that's the only one in there that gets set to display none.. and even so, it should be in the same section as the others I'd have thought.. so unsure what's going on there

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...