Hello,
I’m trying to modify a template for my site, but for some reason, the custom field that I’m expecting to hold my link’s url, contains the full <a href=’link’>link</a>. All I want is it to have ‘link’ so that my following code would work:
{if '{link}' }<a href="{link}">{/if}Which results in the following output:
<a href="<a href="http://google.com/">http://google.com/</a>">You can see a screenshot of how I have the custom field setup here: http://imagebin.org/153759
The full template code looks like this:
{exp:channel:entries
channel="main"
disable="categories|category_fields|member_data|pagination|trackbacks"
dynamic="on"
limit="1"
}
<div class="play-box">{general-largeimage}
{if '{link}' }<a href="{link}">{/if}
{if '{image}' != '.' && '{image}' != ''}{exp:imgsizer:size src="{image}" width="1200"} {sized} {/exp:imgsizer:size}{/if}
{if '{link}' }</a>{/if}
{/general-largeimage}</div>
</div>
</div>
</div>
{/exp:channel:entries}v2.1.3, Build: 20110405Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.