List Info

Thread: external links in new window




external links in new window
country flaguser name
United States
2007-02-08 13:25:45
I found a few previous posts addressing this, but I am
unable to get 
external links to open in a new window, either created as an
item or in the 
content page.  I am running Plone 2.5.2 on Zope 2.9.6 using
Python 2.4.4. 
All the previous posts address versions of Plone prior to
2.5.2.

I poked around in the mark_special_links.js file which told
me to go to 
plone_javascript_variables.js and set
open_links_in_external_window to 
'true'.  I followed these instructions, but external links
still take over 
the Plone window in my browser, forcing the use of the back
button to 
return.

I also modified the following lines in mark_special_links.js
as a test:

if ((typeof external_links_open_new_window != 'undefined')
&&
                    (external_links_open_new_window ==
true)) {
                    links[i].setAttribute('target',
'_blank');
                }

I removed the if statement, leaving only the
links[i].setAttribute('target', 
'_blank'); line, but the links still open in the same
window.  I also tried 
removing the single quotes, as mentioned in a previous post.
 I have 
restarted the Zope server each time I made a change,
clearing the cache in 
my browser as well.

I have had good luck including links in the content window
by using the 
windowZ product, but there are certain links I need to open
in new windows.

Any ideas?

Thanks,

Josh









_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup

Re: external links in new window
country flaguser name
United States
2007-02-08 15:11:10
This is not a setup/install question, and is also
product-specific (ie.  
SimplePortlet does not ship with Plone). Please try the
General Plone  
list: http://plone.org/sup
port#general

— Alexander

On Thu, 08 Feb 2007 11:25:45 -0800, Josh  
<jreinekegmail.com> wrote:

> I found a few previous posts addressing this, but I am
unable to get
> external links to open in a new window, either created
as an item or in  
> the
> content page.  I am running Plone 2.5.2 on Zope 2.9.6
using Python 2.4.4.
> All the previous posts address versions of Plone prior
to 2.5.2.
>
> I poked around in the mark_special_links.js file which
told me to go to
> plone_javascript_variables.js and set
open_links_in_external_window to
> 'true'.  I followed these instructions, but external
links still take  
> over
> the Plone window in my browser, forcing the use of the
back button to
> return.
>
> I also modified the following lines in
mark_special_links.js as a test:
>
> if ((typeof external_links_open_new_window !=
'undefined') &&
>                     (external_links_open_new_window ==
true)) {
>                     links[i].setAttribute('target',
'_blank');
>                 }
>
> I removed the if statement, leaving only the  
> links[i].setAttribute('target',
> '_blank'); line, but the links still open in the same
window.  I also  
> tried
> removing the single quotes, as mentioned in a previous
post.  I have
> restarted the Zope server each time I made a change,
clearing the cache  
> in
> my browser as well.
>
> I have had good luck including links in the content
window by using the
> windowZ product, but there are certain links I need to
open in new  
> windows.
>
> Any ideas?
>
> Thanks,
>
> Josh
>
>
>
>
>
>
>
>
>



-- 
Alexander Limi · http://limi.net


_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup

Re: external links in new window
country flaguser name
Netherlands
2007-02-08 15:10:21
Josh wrote:
> I found a few previous posts addressing this, but I am
unable to get 
> external links to open in a new window

This is not a question about how to get plone set up on your
server.
Could you re-ask on the plone user mailinglist?

Reinout

-- 
Reinout van Rees                       r.van.rees 
zestsoftware.nl
http://vanrees.org/weblog/
                  http://zestsoftware.nl/
"Military engineers build missiles. Civil engineers
build targets."


_______________________________________________
Setup mailing list
Setuplists.plone.org
http://
lists.plone.org/mailman/listinfo/setup

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )