Page 1 of 1

CategoryBreadCrumbs shows only top level categories

Posted: Mon Jul 19, 2010 9:30 pm
by MMIKAL
Hi Guys

The CategoryBreadCrumbs on all categroy pages shows only top level (first category) and does not show the category trail.
The BreadCrumbsRepeater.Controls.Count is always 2, no matter how deep you are. The CategorySearchSidebar on the page is working OK.
We have several subcategories ( 4 levels) and we have not modified the code, the original code is not working.

This is very critical for us, any help is appriciated. Thanks

UPDATE: CategoryBreadCrumbs shows only top level categories

Posted: Mon Jul 19, 2010 11:01 pm
by MMIKAL
It seems the CatgoryBreadCrum is updated using paramter passed on the address (Category.aspx?CategoryId=XXX) and the CategorySearchBar does not update the CategoryID parameter. The CategorySeachBar changes the content based on selected category in narrow/Expand and the content is changed accordingly, but a CategoryId is not passed and therefore the BreadCrumb is not updated.

I was wondering if this a normal behavior? and Any hint on how to fix it?

Thanks in advance.

Re: CategoryBreadCrumbs shows only top level categories

Posted: Fri Jul 23, 2010 11:38 am
by MMIKAL
No response for over a week, At least can somebody confirm I am right or not ?

Re: CategoryBreadCrumbs shows only top level categories

Posted: Fri Jul 30, 2010 6:49 am
by mazhar
What is your application version? Are you running the page in question in out of the box configuration or you moved things around to suit your needs? If you customized the page what is current configuration of the page means what's in its sidebar, what's in its content section etc.

Re: CategoryBreadCrumbs shows only top level categories

Posted: Fri Jul 30, 2010 9:22 am
by mazhar
Give a try and edit your Conlib/CategoryBreadCrumbs.ascx.cs file and locate following line

Code: Select all

        this.CategoryId = PageHelper.GetCategoryId(true);
and update it as

Code: Select all

if(this.CategoryId==0)
        this.CategoryId = PageHelper.GetCategoryId(true);
save the changes and then test. See if it fixed the issue or not.

Re: CategoryBreadCrumbs shows only top level categories

Posted: Fri Jul 30, 2010 10:49 am
by MMIKAL
It did it,it now works. Thanks a lot, we spend lots of hours on it.
I am just wondering, isn't it suppose to be there by default?

Re: CategoryBreadCrumbs shows only top level categories

Posted: Fri Jul 30, 2010 11:26 am
by MMIKAL
Hi again,
Mazhar, it does not updates on the product detail page !
Any idea?