TransWikia.com

get value from content type B, in a view of content type A

Drupal Answers Asked by bapafe on December 28, 2021

i have a content type named songs. among other fields, it has a field named title of the song, which has as its field type the Node reference. i also have a second content type named songsTitles which keeps all songs’ metadata, where there is for instance the duration of the song, the producer, etc. how can i retrieve in a view that i have created for the content type songs, instead of the node reference value, for each song, its duration instead? I would prefer to do it via the Views gui, since whatever i tried with code was not successful.

One Answer

To retrieve information linked through ER fields you have to add the Relationship for the ER field.

The Relationship will open new options you can add to your Views.

You will be able to add the Duration Field to your Views after you add the Relationship. That field will use the Relationship by default (it wouldn't work without it).

Answered by prkos on December 28, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP