show image in module page
Created 7 years ago by buinguyentuong

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

ryanthompson  —  7 years ago

You can use .make or .image off of the file field type and it will return an Image instance: http://pyrocms.com/documentation/streams-platform/image

So from your page type layout:

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