Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to open DDRMenu link in new tab?How to open DDRMenu link in new tab?
Previous
 
Next
New Post
4/10/2013 12:25 PM
 
I did not try is yet, only read it fixed.
You can try the DumpXML template of the DDR menu to see what's in the xml.
 
New Post
4/10/2013 12:43 PM
 

Well, I just downloaded the latest version of DDRMenu and looked through all the included files.  I see absolutely no reference to adding a target attribute on the menu anchor in either the DefaultTemplate.xslt or the DumpXML template.

Could anyone point me to how to accomplish this?  There doesn't appear to be a way to read the pages attribute of "open in another browser window" from within the template.  :(

 
New Post
4/10/2013 12:59 PM
 

I hate to double post, but I came up with a work around.  it's not the most elegant solution, but it will work.  I thought I would share it and hope that this will be addressed in the DDRMenu soon.

Open the jquery.dnnmega.js file and add the following lines of code to the bottom of the document.ready function:

    // WORKAROUND: find every anchor that ends with -popup and add target="_blank"
    jQuery('a[href$="-popup"]').each(function() {
        this.target = "_blank";
        this.href = this.href.substring(0,this.href.length -6);
    });

Next, simply add -popup to the end of any link you want this to apply to.

 
New Post
4/10/2013 1:01 PM
 
Jay, i will take a look at this. A workaround would be to use Razor templating, which would allow you to get full access to the tabinfo object, thus making it possible to open a link in a new window

Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
4/10/2013 1:18 PM
 

Our team has spent quite a bit of time tweaking the JavaScript, the XSLT, and the CSS to get the DDRMenu working and looking just so with the XSLT template.  Starting over with a new templating engine isn't really an option for us as this point in the project.

Thanks for looking into resolving this within an XSLT template for me.  Seems to me it's something that has been overlooked and should be implemented anyway.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...How to open DDRMenu link in new tab?How to open DDRMenu link in new tab?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out