I'm working with the paragraph module and I've created a paragraph type called Image Teaser Block wich is an entity reference to a content type (Image Teaser, multiple references possible). This content type has 5 fields (Image, list, 2x text + link) and I'd like to render the values directly in the paragraphs template (paragraph--image-teser-block.html.twig).
What I could do is using {{content}} or {{content.field_image_teaser}} to render the HTML in the paragraph template and then change the field templates. But because I have many different paragraph types and each has a lot fields I would end up with tons of templates (imagine 10 different paragraphs with 6 fields each -> 60 different template files) and that's not really efficient to work.
So how can get the values (not rendered HTML) in the paragraph--image-teser-block.html.twig file like that:
<div class="wrapper">
{% for item in imageTeaserBlock %}
<article style="background-image: url('{{item.img.url}}');">
<a href="{{item.link}}">
<div>{{item.listLabel}}</div>
<div>
<div >{{item.title}}</div>
<h2 >{{item.subtitle}}</h2>
</div>
</a>
</article>
{% endfor %}
</div>
I think the same issue applies also to content types wich are entity references to other content types.