Page 1 of 1
Setting External URL links
Posted: Thu Oct 28, 2010 1:00 pm
by merlowe
Is there a feature that can enable me to set sitewide so that all external links open up in a new window so that i don't have to set each link individually to open externally?
Re: Setting External URL links
Posted: Thu Oct 28, 2010 5:27 pm
by Dr.CSS
No, but when setting links you can set the target on it, if you tried to do it site wide you may end up with all links going out of the site...
Re: Setting External URL links
Posted: Fri Oct 29, 2010 9:40 pm
by merlowe
I found out I could actually achieve this with Javascript
http://www.aliaspooryorik.com/blog/inde ... ls/post/94
Where would i place a Javascript file to be loaded in a template? Would I place it under the "Global Content" and then use a tag to include it in the template, or is there a special location just as CSS has a specific location ?
Re: Setting External URL links
Posted: Fri Oct 29, 2010 9:56 pm
by Dr.CSS
You can put it in the template or in a GCB, most times I just put it in the , just watch out if it has any { } in it that you use the {literal} wrap...
Re: Setting External URL links
Posted: Fri Oct 29, 2010 10:06 pm
by Wishbone
merlowe wrote:
I found out I could actually achieve this with Javascript
http://www.aliaspooryorik.com/blog/inde ... ls/post/94
Where would i place a Javascript file to be loaded in a template? Would I place it under the "Global Content" and then use a tag to include it in the template, or is there a special location just as CSS has a specific location ?
I like that.. phpBB doesn't do external links anymore... I can put this into the template.