• 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

NinaMcI

Active member
#1
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.
 

rafass

Well-known member
#5
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
 

NinaMcI

Active member
#6
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">
View attachment 115059
and:
View attachment 115060
This is exactly it - thank you very much for your help :)