How to display the image of the related node in the Message template?

by tp00   Last Updated July 12, 2019 00:07 AM

I have the Message module installed on my site. I created a message template for the new node created in my sub theme.

enter image description here

I would like to display the image of the node in the message template with the style diaporama_lg_50.

I tested the code below with TWIG but it does not work :

{{ message.field_node_reference.entity.field_article_image | image_style('diaporama_lg_50') }}

Related Questions

Updated May 31, 2019 14:07 PM

Updated September 02, 2018 17:07 PM

Updated September 05, 2018 20:07 PM

Updated September 09, 2018 06:07 AM

Updated October 01, 2018 23:07 PM