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

RM 1.2 Getting resource external URL to open in new window

Discussion in 'Resource Manager Support' started by NinaMcI, Aug 24, 2015.

Tags:
  1. NinaMcI

    NinaMcI Active Member

    Hi,
    Could someone show me which template to edit so that the external URL link opens in a new window to avoid users navigating away from my website?
    Thanks.
     
  2. DaveM

    DaveM Well-Known Member

    @AndyB did an add on for this if I remember correctly
     
    NinaMcI likes this.
  3. NinaMcI

    NinaMcI Active Member

    Thanks. Unfortunately, I can't find it :(
     
  4. DaveM

    DaveM Well-Known Member

    NinaMcI likes this.
  5. rafass

    rafass Well-Known Member

    The template is resource_view_header just add target="_blank"
    find:
    PHP:
    <a href="{xen:link resources/download, $resource, 'version={$resource.current_version_id}'}" class="inner">
    and replace with:
    PHP:
    <a href="{xen:link resources/download, $resource, 'version={$resource.current_version_id}'}" class="inner" target="_blank">
    Screen shot 2015-08-24 at 5.21.02 PM.png
    and:
    Screen shot 2015-08-24 at 5.26.14 PM.png
     
  6. NinaMcI

    NinaMcI Active Member

    This is exactly it - thank you very much for your help :)
     
  7. NinaMcI

    NinaMcI Active Member

    Thanks for your help. I've managed to sort it by editing the template as suggested by @rafass
     
    DaveM likes this.

Share This Page