Log1x / crumb

A simple breadcrumb package for Sage 10.
https://github.com/log1x/crumb
MIT License
38 stars 8 forks source link

Add crumb type to entries #22

Open ouun opened 11 months ago

ouun commented 11 months ago

Hi @Log1x,

I hope you are doing great. Just recognized that for posts Crumb adds all selected categories to the array. Having a couple of categories makes it quite chaotic.

I am using The SEO Framework which adds a "Primary Category" feature that I would like to use. For that I would like to hook into the array and just remove all category crumbs except the primary one.

However currently it is not possible to differate between the crumb types (page, front-page, taxomomy, ...) and therefor I am thinking about a PR to add the "type" to each crumb array. That would allow us to better adjust the crumbs before passed to the view.

Wondering what you think about it.

Thanks and kind regards,

Philipp

zarei-dev commented 5 months ago

In my opinion, The right solution is to add apply_filters for items.