Hi all!!
I know it should be simple, but since I am into silverstripe some months ago I have sometimes problem with smallest things.
I am trying to generate in my template one picture with a link to external site. This link will be written by my customer when he makes and entry in the cms, so will come from DB. The problem is, the link is coming right, but the finall result is link with the baseurl in the href that look like this "http://mydomain/parentpage/http://www.google.es".
The code in the template is:
<div class="typography">
<ul>
<% control Items %>
<h2>$Title</h2>
<p><a target="_blank" href="http//www.$ExternalLink/" rel="external">$Photo.SetWidth(50)</a></p>
<li>
<p>$Content.FirstParagraph</p>
<a href="$Link">View</a>
</li>
<% end_control %>
</ul>
</div>
$ExternalLink is a text type in DB
Thanks Greetings