Jump to content
Sign in to follow this  
ais

Category drop down list - Contrib #46 v3.a

Recommended Posts

I just installed the above contribution.

 

One thing I noticed was that the breadcrumb trail is no longer accurate i.e. if you are in a sub-category, the category is not displayed before the sub-category.

 

Anybody got a fix for this?


why oh why did I ever start...

Share this post


Link to post
Share on other sites

From what I can tell you are right about the path composition.

 

I had a look at the categories table amd basically all top categories have a parent id of 0 (zero).

 

All sub-categories have a parent id of greater than 0.

 

It seems one has to do a query for the parent id and build the category id to include the parent id. You may have to do a loop in the case of very deep categories until you hit a parent id of 0.

 

For the moment I partially "solved" the problem by expanding the sub-category names to include the category name.

 

Fortunatelty I only have 1 sub-category at the moment so I can get away with it.


why oh why did I ever start...

Share this post


Link to post
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
Sign in to follow this  

×