show image in module page
Created 8 years ago by buinguyentuong

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

ryanthompson  —  8 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 }}