-
-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Taxonomy listing with collection param returns all terms #1684
Comments
How many terms are in that taxonomy? Are they all being output? |
There are 2 terms, but this entry has only one. However regardless of which term route we are on, this entry is returned @jasonvarga |
What I DO see is that when are NO terms, all are shown, like here: https://challengeteacher.online/math-zone/levels/primary there should be nothing shown. The code we're using is:
|
The code in the initial issue description is a taxonomy tag. Now you're showing me a collection tag. I'm confused. 🤔 |
Ya sorry I'm confused too, let me regroup and report, feel free to delete my comments. I gotta understand how we're using the taxonomies. |
Hey @jasonvarga, Levels Taxonomy
Taxonomy terms in /taxonomies/levels: Collection entry in
|
Did you work this out? |
Hey there, we haven’t heard back on this for a while so I’m going to need to close the issue to help us stay organized. You can always reply with more info so we can reopen it or feel free start a fresh one anytime. Either is fine by us! |
I'm getting this behaviour too. I've got a taxonomy with ~15 terms. On a collection with no entries, every term is still being output. I think it's just ignoring the collection param entirely, it happens on all of my collections. I've tried adding more piped collections, using a variable etc. Still the same result. Could we reopen this? EDIT: I'm on a custom route, not one that Statamic auto-generates
|
We have been experiencing this same issue. Instead of only getting terms in the blog collection the output is all of our tags terms. NOTE: I am not on one of the auto-magically created routes that is defined here: https://statamic.dev/taxonomies#routing
|
Are you doing |
@jasonvarga I have tried both and both give the same issue! |
I am unsure if this is directly related or not, but filtering taxonomy terms by collection on magically created taxonomy routes is also not working. If I create a
I would expect the tag terms that output to only be terms used in blog collection entries, but the output includes all tags. Even tags that are not attached to any entries at all. Some more detailed discussion about this can be found here: https://discord.com/channels/489818810157891584/489819906540568593/850100960214515753 |
This looks related: #1993 Curious what other information could be given in order to have some motion on either this issue or the one linked above. |
Bug Description
We have a collection with one entry that is tagged with a single term. When I pass the collection param, I would expect to only have that single term return however it returns all terms.
It looks like the collection parameter is queried here but then it returns all terms. https://github.com/statamic/cms/blob/master/src/Tags/Taxonomy/Terms.php#L36
Statamic version: 3.0.0.-beta-26
PHP version: 7.{?}
Install method (choose one):
statamic/statamic
The text was updated successfully, but these errors were encountered: