Not sure if this can be done natively or if an add-on is out there.
I'm trying to figure out a way to limit entries with multiple parent categories to just one parent and it's children. The reason, I have nested product URL's:
http://domain.com/products/parent_cat/child_cat/entry
http://domain.com/products/parent_cat/child_cat/grand_child/entry
Currently this works well for products with a single parent category.
Right now entries with multiple parent categories build "bad" URL's in the search results with this template code:
<a href="/products/{categories}{category_url_title}/{/categories}{url_title}">{title}</a>
Which works, if the entry has only one parent category assigned to it. If it has multiple, I get a nested URL with parent and child categories mixed together:
http://domain.com/products/parent_cat/other_parent/child_parent_cat/child_other_parent_cat/entry
Any ideas on how I could limit the parent & child categories to just one parent tree? Thanks for the help!