I have a content type with a field that is an entity reference to another content type called "URLs", and the "Allowed number of values" is set to "Unlimited", meaning that one record can have multiple URLs associated to it.
When I come to the View for this node, I have added a Field for "URLs", and under "MULTIPLE FIELD SETTINGS" I have ticked "Display all values in the same row", and Display type: Unordered list.
This works well, and I get the the list of associated URLs in an unordered list, like so:
- www.domain1.com
- www.domain2.com
- www.domain3.com
Where it gets complicated, my "URLs" content type has another field called "field_url_type", which is a field type "List (text)". This contains the type of URL, (eg. Production, Development, Staging, Decommissioned, etc).
In the main content type display View, I would like to display this additional field from the URL content type next to the URL values, like so:
- www.domain1.com (Production)
- www.domain2.com (Development)
- www.domain3.com (Decommissioned)
I tried using the Views > Configure Field > REWRITE RESULTS panel to include the REPLACEMENT PATTERNS for both fields, like so:
{{ field_url }} ({{ field_url_type }})
... but this didn't work. I'm guessing it is more complicated than that!
Does anyone know how I can display this additional field from a content type referenced by an entity reference field in a node view?