Text Adjustment: 

Background Styles: 

Monday, February 06, 2012
Opening a Menu Item in a New Window
Minimize


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:

  1. Go to your page you want to use for the link and click into the page settings.
  2. Expand the Advanced Settings
  3. Expand Other Settings, if necessary.
  4. Select URL for the link type
  5. In the URL box that appears, insert the following as the URL

    javascript:void(window.open('http://www.google.com'))
     
  6. Change the link to Google in that code to your desired URL
  7. 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!

  
Copyright Notice  

Copyright © 2008 by LetItShine.Biz. All rights reserved. No part of the LetItShine Online Help or LetItShine Help may be reproduced, stored in retrieval systems, or transmitted in any form or by any means, electronic, mechanical, photocopying, recording or otherwise without the prior written consent of the publisher.

The authors have made every effort in the preparation of this content to ensure the accuracy of the information. However, the information is provided without warranty, either express or implied. The authors will not be held liable for any damages caused or alleged to be caused either directly or indirectly by this content.

Website Services  |  About  |  Contact Us  |  Pricing  |  Styles Gallery  |  Sign Up
Copyright 2005-2008 LetItShine.Biz