NinaMcI Active member Aug 24, 2015 #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.
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.
DaveM Well-known member Aug 24, 2015 #2 @AndyB did an add on for this if I remember correctly Upvote 0 Downvote
DaveM Well-known member Aug 24, 2015 #4 NinaMcI said: Thanks. Unfortunately, I can't find it Click to expand... Here you go Resources Fix Buttons Upvote 0 Downvote
NinaMcI said: Thanks. Unfortunately, I can't find it Click to expand... Here you go Resources Fix Buttons
rafass Well-known member Aug 24, 2015 #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"> and: Upvote 0 Downvote
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"> and:
NinaMcI Active member Aug 24, 2015 #6 rafass said: 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 Click to expand... This is exactly it - thank you very much for your help Upvote 0 Downvote
rafass said: 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 Click to expand... This is exactly it - thank you very much for your help
NinaMcI Active member Aug 24, 2015 #7 DaveM said: Here you go Resources Fix Buttons Click to expand... Thanks for your help. I've managed to sort it by editing the template as suggested by @rafass Upvote 0 Downvote
DaveM said: Here you go Resources Fix Buttons Click to expand... Thanks for your help. I've managed to sort it by editing the template as suggested by @rafass