You need to Register for free and Login to post a message in the forum.

Forum

Subject: Open menu links in new window?
Prev Next
You are not authorized to post a reply.

Author Messages
ericb1
Nuke Newbie
Nuke Newbie
Posts:5

03 Jul 2008 12:33 PM  

I'm using DNN 4.7 and the beyondcss skin from speerio.  I wanted to open some menu links in a new browser window because they're external links to my site.  So from the speerio site, I was helped by adding a text module to a page and adding this javascript to the header:

[script removed]

So now any link that's not an index of my site opens in a new window.  This works great.  However, now I would like to use a different skin, and this little bit of javascript doesn't work on the new skin (Flux).  I'm not the best with javascript, but is there something simple that I can do to change it so that it will work with my new skin?  I'm guessing that the new skin doesn't use or recognize some of this syntax?

Any help is greatly appreciated, thanks!

leesykes
Nuke Master II
Nuke Master II
Posts:2927

04 Jul 2008 7:32 AM  
Hello,

If you attach the code in a zip file to your forum post we can have a look, thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
ericb1
Nuke Newbie
Nuke Newbie
Posts:5

07 Jul 2008 9:24 AM  
Thanks so much!  I didn't see that it removed the [script removed]Thanks again.

Attachment: 177242895371.zip

leesykes
Nuke Master II
Nuke Master II
Posts:2927

10 Jul 2008 1:39 PM  
hello,

It's hard to tell without viewing the original skin and your current skin, but at a guess it looks as though the ID of the menu in the Speerio skin is 'smenu' - perhaps you need to check the ID of the menu in your own skin with the ID of the menu mentioned in the script.

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
ericb1
Nuke Newbie
Nuke Newbie
Posts:5






But it doesn't look like it uses the DIV tag. I tried replacing this in my javascript, with all of these tags, but nothing seems to work. Thanks again.

Which I guess
15 Jul 2008 2:44 PM  
Thanks again for your help.

In the old skin, I can find this bit of code with 'smenu':





In the new skin, the only menu option I can find is here:

leesykes
Nuke Master II
Nuke Master II
Posts:2927

17 Jul 2008 11:05 AM  
perhaps you could attach the original skin code in a zip so we can have a look?

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
ericb1
Nuke Newbie
Nuke Newbie
Posts:5

18 Jul 2008 12:18 PM  

Thank you so much for your help, I really appreciate it.  Ididn't realize that the code I tried to paste in before didn't work, I had added some comments to the bottom that didn't appear.

Anyway, the attached 2 zip files show the 'old' and 'new' skins.  The .js works correctly on the old skin, I'm trying to adapt it work on the new skin.  I just attached the .ascx file from the skin folder, not the entire skin.  If you need to see the whole skin, please let me know and I can re-attach.  Thanks again!


Attachment: 171818187471.zip
Attachment: 171818187454.zip

ericb1
Nuke Newbie
Nuke Newbie
Posts:5

18 Jul 2008 12:23 PM  
This forum re-names attachment files, so the old skin is called '171818187454.zip' and the new skin is called '171818187471.zip' thanks again!
leesykes
Nuke Master II
Nuke Master II
Posts:2927

22 Jul 2008 6:14 AM  
ok, looking at the old skin code, a div tag surrounds the house menu with the ID of smenu.

So, the script looks for any links inside the ID of smenu.

Looking at your skin, you are using tables, and this has the code of:

td class="menu-td"

Around the SolpartMenu, so perhaps you could try adding an ID="smenu", or replacing the table with a div with the ID.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts
You are not authorized to post a reply.
Forums > DotNetNuke® > DotNetNuke® Questions > Open menu links in new window?



ActiveForums 3.7

Latest Forum Posts

RE: Problem in front end by leesykes
The first place I would look is in your skin code, the code for the ControlPanel should look somethi...
RE: Registration Module - Title Repeating Twice by leesykes
Yes, most of the work has been already done for you in the free skins that are available on DNN crea...
Problem in front end by kaustav_kar
Hi,In my website which is in Dot Net Nuke is showing the control panel in the front end in all the p...
RE: Registration Module - Title Repeating Twice by jncraig
Creating a custom container isn't necessary!Lee has been including a "transparent, no title" skin wi...
RE: Registration Module - Title Repeating Twice by Tripytaka
Leesykes, Thank you for your prompt reply. I have un-ticked the display container setting and it ...
RE: Free website monitor by inetwiz
Another free site monitor website is http://www.contentsitemonitor.com This site allows to you to pe...
RE: PowerDNN by jazzylily
I have spoken with Tony Valenti today.  He seems like a nice man and has assured me that he will loo...
RE: Any Idea On A Module For The Following? by leesykes
I haven't seen anything that will do this in one area. Looks like you may need a custom module for t...
RE: Google Maps Tutorial Website by mgordon
Hi,I took a look at your site.  It was not bad at all.My only suggestion would be to somehow delinea...
RE: PowerDNN by DavidWSnow
I have been with PowerDNN for about a year now. No performance degradation issues.They do seem to go...
RE: PowerDNN by mgordon
JazzLilly,Please let us know if your issues get resolved.  I'm getting ready to start a contract for...
RE: Any Idea On A Module For The Following? by mgordon
OK, thanks Joe. Anyone else have any ideas? Thanks! Mark
RE: Any Idea On A Module For The Following? by jncraig
Yikes! I guess my answer is no. I don't know of a module that will meet your needs on this one.
RE: Any Idea On A Module For The Following? by mgordon
Hi Joe, No, you were answering someone else's question. Please re-read my question at the top. ...
RE: Changing top navigation bar item by jncraig
Great!
RE: Creating anchors across modules by jncraig
I have had no problem inserting anchors. If you want to place anchors at the top or bottom of modul...
RE: Registration Module - Title Repeating Twice by leesykes
That's interesting, I have never seen that before!But, after adding the user accounts module to the ...
RE: PowerDNN by MobileNow
Hi JazzLilly,Is there a phone number I can reach you at?  I'd like to talk with you about your issue...
RE: Creating anchors across modules by leesykes
it should be possible to add anchor points anywhere on a page, all you need to do is work out how to...
RE: Media in internet explorer. by leesykes
if you are only adding images to the page, I would simply use the text HTML module and this should g...
AppTheory
RSS Feeds