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:
<% control Items %>
<p><a target="_blank" href="http//www.$ExternalLink/" rel="external">$Photo.SetWidth(50)</a></p>
<% end_control %>
$ExternalLink is a text type in DB