ReGFX
Nuke Pro Posts:88
|
03/07/2011 12:19 PM |
|
I am almost too embarrassed to bring this up… but I thought I’ve accomplished this before.
Basically, using DNN 5.6.1, when I select “other settings” and select Link Type: URL(A Link To An External Resource), HOW… do I get this to open into a NEW WINDOW? Otherwise the link will just open replacing the current window and I can’t have that… For some reason, I thought there was a check box at one time that would allow you as the super user or admin to make the link from the root menu selection or
certain menu fly outs permit you to open a link from an external resource and open that external resource in a NEW WINDOW….
Again forgive me if I’m over looking something I’ve used DNN since the 1.x days but it’s been a while since I’ve had this request.
Again, all i want to do is LINK TYPE url from root menu into a new window... it should not be that hard from root DNN menu... should it. And oh... by the way i tried placing target="_blank" after entering the location of the link... all that does is BLOW up the page... YIKES! Please Advise. Thanks
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
03/08/2011 7:27 PM |
|
This is actually a bit harder than it seems. You are remembering a page setting that allows you to associate a "page" with a file, another page, or an external URL. There really isn't an easy way to add a target, though that would be a nice option. It can be done when you add a link to an HTML module, for example. It would make a nice addition to DotNetNule. However as this is essentially a menu function, using a "modern" menu that permits some customization might be the way to go. You might want to start with DDR Menu from DNNGarden.com. It's a dropin replacement for SolPart and DNN Nav menus, so you can add it with, essentially, no externally apparent changes to the site. If the target option is not in the DDR Menu (and I think it's not) you can probably do it with an addition to the XLT file or the jQuery that runs the menu. If all else fails, Mark is pretty good at offering suggestions. I also saw today that there is a V2 beta for the DDR Menu, and it offers much more in the way of customization. I also found a fairly old forum posting at Snapsis.com that suggesting making the target url a javascript call to window.open that does allow you to create a target. I played with it, but it may be that newer versions of DotNetNuke don't let it work. I didn't look at it long enough to know, though. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Rob Buzek
Nuke Newbie Posts:1
|
03/22/2011 12:07 PM |
|
You can do it with Javascript. Just put this in the external link textbox: javascript:void(window.open(' http://www.yourwebsite.com')) Also It does work in DNN 5.6.1 |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
03/22/2011 5:01 PM |
|
I'd actually like to hear from anyone who has done this successfully with DotNetNuke 5.x. It seems to be a problem. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Joseph Craig DNN MVP Posts:11667
|
03/22/2011 5:04 PM |
|
Famous last words ... it does work in DotNetNuke 5.6.1. I could swear that I tried in and that it didn't work.
|
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
amy Casey
Nuke Newbie Posts:1
|
05/02/2011 1:14 PM |
|
Maybe someone can help with a similar issue. I've set up a page like this, set to open a pdf from our drop down menu. Does anyone know if there is anyway to track this pdf via Google Analytics? Like by adding event tracking to this java script? Or setting up the redirect differently? Thanks! Amy |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
05/04/2011 11:16 AM |
|
Amy, I would try adding event tracking to the javascript. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
johnar
Nuke Newbie Posts:2
|
05/15/2011 10:44 AM |
|
Hello Rob and Joseph, I've tried the method of adding javascript:void(window.open(' http://www.yourwebsite.com')) as my external URL to no avail. In fact it renders the link useless, as it does absolutely nothing. This is a 5.2.3 site by the way, and I too thought that I used something similar in the past to have the link open in a new window. Any thoughts? |
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
05/16/2011 9:05 AM |
|
This is the code I used for the Link URL on my test site: Mine is a 6.x system, and the link works correctly. I don't know if there is a problem in 5.2.3. But, you should probably upgrade anyway. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
audadi auliya
Nuke Newbie Posts:2
|
10/19/2011 10:53 PM |
|
I've not sure whether you have got the solution or not, but i want to share something that work for me just put " *_blank* " in your link url e.g: *_blank*[your url]
|
|
|
|
|
Joseph Craig DNN MVP Posts:11667
|
10/20/2011 5:37 AM |
|
If you are using a menu (such as DDR) that renders links, it's easy to use jQuery to attach a "target" attribute to a specific menu link. DotNetNuke doesn't let you specify a target for pages. |
|
Joe Craig, Patapsco Research Group Complete DNN Support |
|
|
Albert Frausto
Nuke Newbie Posts:1
|
06/26/2012 10:56 AM |
|
I'm currently using DNN 6.1.2 and this is the code that worked for me: |
|
|
|
|