Relate a term to an entry? #8714
stephenmeehanuk
started this conversation in
General
Replies: 1 comment
-
What about something like this?
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
Hi
I've moved this over from discussions
Is it possible to add a class to a taxonomy term based on its relationship to the current entry?
I'd like to highlight the related term by styling it with CSS.
I've got a sidebar listing taxonomy terms, these are mounted to a collection called
products
.The screenshot below shows an entry, the sidebar is a menu of taxonomy terms.
Automated Machines is the entry, and it's related to the term Automation & Materials Handling.
How would I test for that in antlers?


The entry uses this view
resources/views/products/show.antlers.html
This doesn't work
Switching back to
regex
, Erin suggested thisUnfortunately this also doesn't work?
How to reproduce
Logs
No response
Versions
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
runtime (new)
Additional details
No response
Beta Was this translation helpful? Give feedback.
All reactions