show image in module page

buinguyentuong - 1 year ago

in module page i have create one field file. How to show image .

ryanthompson - 1 year ago

You can use .make or .image off of the file field type and it will return an Image instance:

So from your page type layout:

{{ page.your_field.image|raw }} 
{{, 100)|raw }}