Using File Fields Part 2: Templating

In this video, we will create our blog templates and use our file field in our loops.

What We Do

Code Snippets

Channel Entries For Blog Loop

{exp:channel:entries channel="blog" limit="3" dynamic="no" disable="categories"}

Channel Entries Loop With Segment

{exp:channel:entries channel="blog" url_title="{segment_3}"}

File Field Implementation

{!-- You can do it as one tag --}
<img src="{featured_image}" />

{!-- Or as a tag pair --}
    <img src="{url}" alt="{title}" />


Discussion and Questions

Doug Black's avatar
Doug Black

Doug is the developer and founder at tripleNERDscore. He is also core contributor to, ExpressionEngine!

Comments 0

Be the first to comment!