I have a grid field (files), with a column/variable (file). I just need to display my content/snippet if a file has been uploaded.
So something like:
{if files:file}link to my file{/if}
Any help is appreciated.
Do it exactly like you think.
{my_grid_field} {if my_grid_field:column}{my_grid_field:column}{/if} {/my_grid_field}
I worked this out by doing this
{if files}{my_snippet}{/if}
And then in my snippet
{files}
<a href="{files:file}">{files:file_name}</a>
{/files}