Making a link from a menu item to a URL is easy. But there is no built-in support for making that external URL open in a new window.
So we will employ a small bit of javascript code that will perform this function for us. Here are the steps:
- Go to your page you want to use for the link and click into the page settings.
- Expand the Advanced Settings
- Expand Other Settings, if necessary.
- Select URL for the link type
- In the URL box that appears, insert the following as the URL
javascript:void(window.open('http://www.google.com'))
- Change the link to Google in that code to your desired URL
- Update your settings and try clicking the menu
Note: After you perform these steps, if you need to edit the page settings again for any reason, you will have to go to Pages on the Admin menu. Once there, select the page name and then the little pencil on the right.
A Second Technique involves editing the record in the table that holds the link. I have noticed that since DNN 5x method number 1 above has ceased working. Perhaps this will work better.
- Open up the Tabs Table in your favorite SQL Editor
- Look for the URL field of the external link you wish to open in a new window.
- You may see something like: http://example.com
- You want to make it: http://example.com” target=”_blank
Once you save restart the application in the Host -> Host Settings page and view your link you should be good to go!