Score:0

How to get node object from entity referance in paragraph twig template

cn flag

I created a content type named "programs", with an image, short description field. Then I created a paragraph type and added a field as entity reference of programs.

Now in the paragraph twig template or in the field twig template, how can I get the value of image, and short description field?

In the field paragraph twig template

item.content

has only title and node id.

fo flag
This question has been asked and responded to before, you may find this helpful: [Twig get value of field in entity reference](https://drupal.stackexchange.com/questions/222732/get-the-value-of-a-field-from-an-entity-reference) Good luck!
Aurora avatar
cn flag
got it, thank you
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.