Trying to understand how to access a referenced taxonomy term

Created on 7 January 2025, 3 months ago

Hello,
This module should probably do what I want to achieve but I can't find the right syntax.
I would like to use a referenced entity from a node.
The module's page provides this example:

In my case I have a content type with a field named field_city which is a reference to a taxonomy term named city. That taxonomy term has a field named field_country which in turn is a reference to a taxonomy term named country.
So my question is: can I get the name of the country from the taxonomy term city by accesssing that field_city and get the name of the taxonomy term that it refers to in the field_country field?

If this is possible and you could provide a pointer to which syntax to use for the field names I am using that would be great,

Greetings,
Rob

💬 Support request
Status

Active

Version

2.0

Component

Documentation

Created by

🇳🇱Netherlands RobBNL

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024