Setting External URL links

General project discussion. NOT for help questions.
Post Reply
merlowe
Forum Members
Forum Members
Posts: 12
Joined: Sun Oct 24, 2010 3:14 pm

Setting External URL links

Post 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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Setting External URL links

Post 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...
merlowe
Forum Members
Forum Members
Posts: 12
Joined: Sun Oct 24, 2010 3:14 pm

Re: Setting External URL links

Post 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 ?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Setting External URL links

Post 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...
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Setting External URL links

Post 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.
Post Reply

Return to “General Discussion”