Hi,
I have a client who will be uploading files to their site. I’m going to be using icons next to the document to display type (ie Word, Excel or PDF). I wanted to know what the best what to do that would be. Can I use a channel field type in an if statement?
I’m hoping to do something like this, where file_type is my select dropdown name.
{if 'file_type' == "PDF"}/images/ui/icon_pdf.png
{if:else} {if 'file_type' == "Word"}/images/ui/icon_word.png
{if 'file_type' == "Excel"}/images/ui/icon_excel.png
{/if}Thanks,
Drew