Created
November 30, 2012 02:18
-
-
Save makbeta/4173372 to your computer and use it in GitHub Desktop.
Luminate CMS: How to open a link in a new window when it links to the non-current site?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<t:if test="!isNull(link)"> | |
<t:if test="matches(link, 'http://example.com/.*')"> | |
<a href="${link}"> | |
</t:if> | |
<t:else> | |
<a href="${link}" target="_blank"> | |
</t:else> | |
</t:if> | |
<img src="${url}" alt="${alt_text}" /> | |
<t:if test="!isNull(link)"> | |
</a> | |
</t:if> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment