New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Struggling to wrap my head around why conditional glide tag isn't working

Robert Cooper May 8, 2021 by Robert Cooper

If an entry doesn't have an image added, I want to fallback to using a default image:

<img src='{{ summary_image ? glide:summary_image width="600" : glide:default_images.news_summary_image width="600" }}'>

I'm new to antlers so struggling to work out how to get this to work without going super verbose.

Answered by Erin Dalzell!
>>>>>>> Answered <<<<<<<
2 Replies