I’ve written an EE plugin that will let you show all ancestor categories of a given category. I call it the ‘Breadcrumb’ plugin. It’s attached to this post as ‘pi.breadcrumb.txt’. To use the attachment (save it into your plugin folder and) rename it to pi.breadcrumb.php.
Please try it out and give me your feedback about bugs etc. I plan to add the final version to the pMachines list of plugins for EE if you like. Thanks.
This plugin and the “Subcategories” Plugin are a pair.
The “breadcumb” Plugin will show the ancestor categories of a category and the “Subcategories” plugin will show the children categories of a category.
Well it’s rather easy. Both plugins use a current category, which can come from the url, or the “root_node” plugin parameter.
Assuming you have a category group with the following categories, and that your current category is 1.1.1:
1 –1.1 —-1.1.1 ——188.8.131.52 ——184.108.40.206 ——–220.127.116.11.1 ——–18.104.22.168.2 ——–22.214.171.124.3 ——126.96.36.199 —-1.1.2 —-1.1.3 etc.
a) The breadcrumb plugin will show you all ancestor categories of category 1.1.1. In this example:
b) The Subcategories plugin will show you all children categories of category 1.1.1. In this example:
188.8.131.52 184.108.40.206 220.127.116.11
See attached illustration:
You will find more info here in the user guide.