I have created two channel fields for a channel. The first is called source — meaning the name of the source publication the entry is quoting — and the second is called source_url, the URL to the source publication.
Here’s the code in the template.
<div class="col-xs-12"><a href="http://{source_url}">{source}</a></div>Here’s the source code from the webpage the template generates.
<div class="col-xs-12">
<a href="http://a">http://www.rjionline.org/</a>
">RJI online
</div>The default text formatting for the text input field that contains the URL is set to none.
I have no idea why this is happening. Any suggestions?
Thanks.
L.
I just tested this with this template code:
<ul>
{exp:channel:entries channel="sources" disable="categories|member_data|pagination"}
<li><a href="http://{source_url}">{source}</a></li>
{/exp:channel:entries}
</ul>and channel fields of source and source_url with Text Inputs and Default Text Formatting set to “none”.
I had no problem getting these to display, so I’m guessing there is something strange going on either in your template or in your channel fields. I’d just check them again; maybe delete and recreate them?
Wish I could be of more help but I’m new and still learning.
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.