Default image based on element
If a user checks a checkbox then a fallback image should be shown.
Otherwise the selected image should be shown.
In this example we check an element "Show default image?" checkbox.
We can therefor use a simple ifSet Helper to see if it's selected.
{{#ifSet element="Show default image?" }}
<p>Default image:</p>
{{{media id="10927"}}}
{{else}}
<p>User selected image:</p>
{{{publish element="Image"}}}
{{/ifSet}}
Example - Checked
Show default image? field is checked
Default image:
If a user checks a checkbox then a fallback image should be shown.
Otherwise the selected image should be shown.
Example - Unchecked
Show default image? field is NOT checked
User selected image:
UG Quicklinks
Quicklinks
PG Quicklinks