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

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

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


How to use the Message Template?

Updated May 31, 2019 14:07 PM

How to create a message when an article node is created?

Updated September 02, 2018 17:07 PM

How to insert the title of the group in a message?

Updated September 05, 2018 20:07 PM

How to create a message when a group is created?

Updated September 09, 2018 06:07 AM