Timeline for How can I print the vocabulary name instead of the referenced term in a node template?
Current License: CC BY-SA 4.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 16, 2019 at 13:45 | comment | added | leymannx | @SébastienGicquel – 4k4 updated their answer on how to achieve that from just the template. You should accept their answer instead. | |
Jun 14, 2019 at 15:11 | comment | added | Sébastien Gicquel |
No worries, thanks for answering so quickly. @4k4 solution is working partially in my project, it prints the sanitized name of vocabulary (Notice the node.xxx Instead of content.xxx in his answer) I will try your solution and send you a feed back.
|
|
Jun 14, 2019 at 15:00 | history | edited | leymannx | CC BY-SA 4.0 |
added 36 characters in body
|
Jun 14, 2019 at 14:51 | comment | added | leymannx | @SébastienGicquel – Answer updated. Sorry for misdirecting you initially. | |
Jun 14, 2019 at 14:50 | history | edited | leymannx | CC BY-SA 4.0 |
added 448 characters in body
|
Jun 14, 2019 at 14:39 | comment | added | leymannx | @SébastienGicquel – Yes indeed. I only noticed it too late. Wait a minute, I'm already looking the vocabulary up. Unfortunately 4k4's solution didn't printed it for me. | |
Jun 14, 2019 at 14:30 | comment | added | Sébastien Gicquel | @4k4 I found this interesting : It works but it is not really the taxonomy vocabulary name which is printed but the field name (entity reference field). Am I right ? | |
Jun 14, 2019 at 14:23 | comment | added | Sébastien Gicquel | Perfect, I always try first with admin UI but I hadn't thought of "the label solution". | |
Jun 14, 2019 at 14:22 | vote | accept | Sébastien Gicquel | ||
Jun 14, 2019 at 14:15 | history | edited | leymannx | CC BY-SA 4.0 |
added 6 characters in body
|
Jun 14, 2019 at 14:13 | comment | added | 4uk4 | +1, your approach is what you should try first before digging into the field object like i've tried in my answer. | |
Jun 14, 2019 at 14:08 | history | answered | leymannx | CC BY-SA 4.0 |