getgrav / grav-plugin-taxonomylist

Grav TaxonomyList Plugin
https://getgrav.org
MIT License
25 stars 14 forks source link

List only tags that are applied to child pages #16

Closed olivierdalang closed 7 years ago

olivierdalang commented 7 years ago

Hi !

Would it be possible to add an option to list only the tags that are applied to at least one child page ?

I have two different listings, one for blog articles, one for files, and they share the same taxonomy. So it can happen that some tags are applied to some articles, but that there's no file with this tag.

Currently, the taxonomylist plugin still shows a link for those tags, leading to an useless empty page.

Thanks !

Olivier

Lamecarlate commented 7 years ago

Hello,

I have the exact same need: I would like to separate "blog articles" from "links", but they share tags & categories. I'm not sure this is possible, however… Taxonomylist is doing its job: take all taxonomies of the site and display them - and not more.

Maybe it would be simpler to write the code ourselves, since it's pretty specific. I'll give it a try.

kanduvisla commented 7 years ago

I created a pull request that solves this issue (since I required this functionality for myself as well).

Lamecarlate commented 7 years ago

Great! I can't wait for it to be included, thanks @kanduvisla !

rhukster commented 7 years ago

Merged..