Archive
Monthly
Go
|
|
DNN Blog
Aug
15
Posted by:
Mauricio Márquez
8/15/2008
I saw a lot of posts asking about how to open a link in a new window from the menu URL. I posted a simple solution in the old days of the asp.net forums for dotnetnuke and today I decided to blog about it becuase I think it could be useful
It could be done by using a simple javascript:
1) Go to you page properties and the select URL for the link type
2) then.. insert the following as the URL
javascript:void(window.open('http://www.google.com'))
3) Update your settings and try clicking the menu
4) Change to your desired URL
Hope this helps someone
11 comment(s) so far...
Re: New windows from your menu item?
great tip, thanks for sharing it!
By sunwangji on
8/15/2008
|
Re: New windows from your menu item?
Great little tip.
Can you help me out with another similar request? How do I make a menu link do nothing. E.g I have a top level menu item that I just want to use as placeholder text to popup the menu underneath.
I tried void(0) but everytime I do this DNN prefixes http:// to the link in the page settings.
By webbo on
8/15/2008
|
Re: New windows from your menu item?
It would be great, if this could be added as "open in new window" flag in UI of DNN core framework ;)
By leupold on
8/15/2008
|
Re: New windows from your menu item?
It's quite helpful, I use a similar technique when I need to pop up a window saying your moving away from the current site as well. Someone needs to write the DNN tips and tricks book :)
By keeperofstars on
8/15/2008
|
Re: New windows from your menu item?
I had a similar issue that was assisted by a small bit of Javascript. I needed a link to take me back a page. Here is the code: history.go(-1)
By pspeth on
8/15/2008
|
Re: New windows from your menu item?
Dear webbo: Just set it as disabled in the page settings.
By locopon on
8/15/2008
|
Re: New windows from your menu item?
@locopon: Thanks for that, how dumb do I feel! ;) Always figured that disabling a page also took it out of the menu but I guess I should have just tried. Thanks again.
By webbo on
8/18/2008
|
Re: New windows from your menu item?
I totally agree with Sebastian. This should be a part of the DNN core framework. Thumbs up!!
By pietje_puk100 on
8/21/2008
|
Re: New windows from your menu item?
Does this really work? Is it only for certain versions of DNN? When we try it, http:// is prepended onto the url and it fails.
By Dan Duda on
12/1/2008
|
Re: New windows from your menu item?
Webbo, you could disable and mark the page hidden, then it wouldn't appear in your menu.
By Jerry Andersen on
9/28/2009
|
Re: New windows from your menu item?
I see that a release of the provider was released in December 2008, but nothing is mentioned of it on this blog? Where can I find more information on what was included in this new release?
Thanks!
By Mark Gordon on
9/28/2009
|
|