Hi,
I'm trying to add breadcrumbs to the category pages of the new NG theme. like they had in the coffee skin.
Has anybody tried this already?
My idea was to fetch the categories with UStoreProvider.api.categories.getCategoryTree() and then filter the subcategories of the current category with the categoryID : UStoreProvider.api.categories.getCategoryIDByFriendlyID(categoryFriendlyID);
Where I get stuck is by getting the current category out of the categorytree object and filter out the cubcategories branch from the three to feed the template to generate the breadcrumbs.
Anyone with a little more programming experience knows how to do it or have a better way how to fetch the desired data to generate the breadcrumbs trail? Please let me know.
Thanks,
Kay