I have a grid called "attachments" with 2 fields. They can enter either a File or they can enter a video url through a simple text field. Any idea what I'm doing wrong?
However, when I try to create an href it gets all messed up for some reason and creates markup such as
<a href="a href=" https: www.youtube.com watch?etc">https: www.youtube.com watch?etc</a>"">testURL"
I've verified the value without the and it spits out the url like it should, and I checked the field to make sure None was set for text formatting.
Here's my code:
{attachments}
{if attachments:image_file != ""}
<a href="{attachments:image_file}">testImg</a>
{if:elseif attachments:video_url != ""}
<a href="{attachments:video_url}">testURL</a>
{/if}
{/attachments}