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, ...DDR Menu XSLT multiple testsDDR Menu XSLT multiple tests
Previous
 
Next
New Post
7/17/2012 2:47 PM
 

Hi All,

For certain areas of my site, I need to open menu items in a new window.  For example, all menu items whose root ancestor is tab 93 should pop in a new window.   The logic behind would be something like:

IF breadcrumb(0)=TabId(93) THEN apply target=_blank to link

Any ideas how I can accomplish this in my DDR XSLT?  I'd like to keep things tied to the root ancestor so my client will have flexibility to add pages in these sections and the new pages will automatically pop in a new window.

Any suggestions are appreciated.  Thanks!
Kelly

 
New Post
7/17/2012 3:12 PM
 
My initial reaction is that this sounds like bad UI design. Users are reassured by a set of standard cues that behave consistently.

I'd expect a menu system that randomly (ie the user cannot predict it from any visual cue) pops new windows would feel very confusing. How about making tab 93 a simple page with a list of links (hence different visual cue) maybe with a simple legend above that says - "these links open in a new window".

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
7/17/2012 3:34 PM
 

I totally agree, Richard.  However, the client is insistent that the site operate this way - even though we have gone through wire framing  and I have demonstrated the poor user experience.  It is probably going to take demonstrating this on the live site to get them to change their mind.  

 
New Post
7/17/2012 4:16 PM
 
A colleague provided the answer for me:

<xsl:if test="ancestor::node[@id='93']">
        <xsl:attribute name="target"><xsl:value-of select="'_blank'"/></xsl:attribute>
        </xsl:if>

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DDR Menu XSLT multiple testsDDR Menu XSLT multiple tests


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