RM 1.2 Getting resource external URL to open in new window

NinaMcI

Active member
Licensed customer
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.
 
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.webp
and:
Screen shot 2015-08-24 at 5.26.14 PM.webp
 
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 :)
 
Back
Top Bottom