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 display the parent node link highlighted , when child node is selected in DDR Menu  Urgent!!how to display the parent node link highlighted , when child node is selected in DDR Menu Urgent!!
Previous
 
Next
New Post
7/6/2012 1:07 AM
 

Hi all,

I am planing to use the DDR menu, can any one guide me how to display the parent node highlighted in DDR menu if child of that page is selsected, I want to create menu similar in the following image, is it possible with DDR menu, if yes then please guide me how can I do this.

 

This is very very urgent..

 

 
New Post
7/6/2012 2:12 AM
 
In all the internal pages the submenu will be displayed with the child pages of the selected root item, if user select about us, then aboutus should be selected and the child pages of the about us should eb displayed in submenu. The menu will not open on hover it will be open when user go to that childpage.
 
New Post
7/6/2012 3:31 AM
 

You can use this in your menus xslt:

<li>
     <xsl:attribute name="class">
          .....
          <xsl:if test="@breadcrumb = 1 and @selected != 1"> ActiveParent</xsl:if>
          .....
     </xsl:attribute>
</li>

 

 

 
New Post
7/6/2012 4:33 AM
 
AFAICT mmBreadCrumb is already set on it

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
7/6/2012 4:53 AM
 
Hi

 

Thanks for reply,

For Menu in skin I have written the following

 

<dnn:MENU MenuStyle="ULXSLT" CSSNodeSelectedRoot="main_dnnmenu_rootitem_selected" NodeSelector="RootOnly" runat="server"></dnn:MENU>

 

is it correct? and the xslt code written in xslt file is where to write the code you sent please guide me. The submenu I want to be opened on the selected page , it should not open on hover. the sub menu should be realetd to the the parent page


I have replace  "<xsl:if test="@first = 1">first</xsl:if>
                <xsl:if test="@last = 1"><xsl:text>&#32;</xsl:text>last</xsl:if>
                <xsl:if test="@selected = 1"><xsl:text>&#32;</xsl:text>selected</xsl:if>" by  <xsl:if test="@breadcrumb = 1 and @selected != 1"> ActiveParent</xsl:if>


also check with adding

 <xsl:if test="@breadcrumb = 1 and @selected != 1"> ActiveParent</xsl:if> line also  showing all the result


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="html"/>
    <xsl:template match="/*">
        <xsl:apply-templates select="root" />
    </xsl:template>
    <xsl:template match="root">
        <ul>
            <xsl:apply-templates select="node" />
        </ul>
    </xsl:template>
    <xsl:template match="node">
        <li>
            <xsl:attribute name="class">
                <xsl:if test="@first = 1">first</xsl:if>
                <xsl:if test="@last = 1"><xsl:text>&#32;</xsl:text>last</xsl:if>
                <xsl:if test="@selected = 1"><xsl:text>&#32;</xsl:text>selected</xsl:if>
            </xsl:attribute>
            <xsl:choose>
                <xsl:when test="@enabled = 1">
                    <a href="{@url}">
                        <xsl:value-of select="@text" />
                    </a>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="@text" />
                </xsl:otherwise>
            </xsl:choose>
            <xsl:if test="node">
                <ul>
                    <xsl:apply-templates select="node" />
                </ul>
            </xsl:if>
        </li>
    </xsl:template>
</xsl:stylesheet>





 




Thanks

Sansugoi
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...how to display the parent node link highlighted , when child node is selected in DDR Menu  Urgent!!how to display the parent node link highlighted , when child node is selected in DDR Menu Urgent!!


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