1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

RM 1.2 How to open URLs in new tab

Discussion in 'Resource Manager Support' started by indicator, Jun 13, 2016.

  1. indicator

    indicator Member

    Hi there,
    I want to open link in new tab for following URL input in add resources.
    Additional Information URL:
    Alternative Support URL:

    How can i make URL open in new tab.

    Thanks in advance!
  2. Chris D

    Chris D XenForo Developer Staff Member

    Edit the resource_view template, find those links and add
    to them.
  3. indicator

    indicator Member

    Hi Chris,
    Thanks for the reply, I have added target="_blank" to following
    <xen:if is="{$xenOptions.allowAltResourceSupportUrl} and {$resource.alt_support_url}">
            <a class="callToAction" href="{$resource.alt_support_url}" {xen:if '!{$resource.isTrusted}', 'rel="nofollow"', 'target="_blank"'}><span>
                {xen:phrase ask_questions_get_support}
    It's not working. could you please check
  4. Chris D

    Chris D XenForo Developer Staff Member

    You added it in the wrong place, meaning it would only actually add it under certain conditions. Try this:
    <a target="_blank" class="callToAction" href="{$resource.alt_support_url}" {xen:if '!{$resource.isTrusted}', 'rel="nofollow"'}><span>
    indicator likes this.
  5. indicator

    indicator Member

    Thanks Chris, it works!:)

Share This Page