So, I have an elaborate custom field set, with several of the custom fields containing info about URLs. The client will be able to enter links to URLs on our site, or to external URLs (off site). This is the code that takes one of the URL fields and displays a link around an image using the date supplied in the custom field:
<a href="http://{promo_3_link}">{promo_3_image}</a>If the value of “promo_3_link” is a local URL, like:
/home/mytemplate
then I don’t want to do anything else with that link. But, if the value of “promo_3_link” starts with “http” I want to dynamically add code to it that would make that link open in an external window. How do I do this?
Thanks.