Forum


HomeHomePublicPublicSkinningSkinningHow to get DDR Menu to output root level element of subnavHow to get DDR Menu to output root level element of subnav
Previous
 
Next
New Post
8/20/2014 1:03 PM
 

Hi,

I'm trying to set up a couple of menus with the DDR Menu XSLT templates. In one template I am trying to build a subnav with the following structure:

<h3><a href="#">Employers</a></h3>
<nav class="subNav">
<ul>
<li><a href="#">LWCC Interactive</a></li>
<li><a href="#">Claims</a></li>
<li><a href="#">Safety &amp; Health</a></li>
<li class="has-child"><a href="#">Forms &amp; Documents</a>
<ul>
<li><a href="#">Benefits &amp;Claims</a></li>
<li><a href="#">Safety &amp; Health</a></li>
<li><a href="#">Forms &amp; Documents</a></li>
<li><a href="#">Return to Work</a></li>
<li class="last"><a href="#">Articles</a></li>
</ul>
</li>
</ul>
</nav>


where the item in the h3 is the root level parent of the whole subtree. I am using the XSLT template and I can get it to output the h3 element but it has no text or url in the link. I think it may be because I have the following line calling the DDR Menu:

<ddr:MENU MenuStyle="sidebarSubnav" NodeSelector="RootChildren" runat="server" />

It seems to be giving me all of the children in the current section, but not the top level page, so I am not sure how to rewrite this or if it is even the problem. Can anyone help me resolve this?

Thanks!

Brian




 
New Post
8/21/2014 5:22 AM
 

well the menu works as you have set it up

 

it shows the children of the curretnly selected root , if you want everythign you show you need to get rid of the nodeselector

 
New Post
8/21/2014 5:26 AM
 

Hi Armand,


The code I posted was just an example but I was able to figure out what I needed it to do. I made a couple of changes to the NodeSelector call then modified a token template to get it to output what I needed. Thanks for your help!


 
Previous
 
Next
HomeHomePublicPublicSkinningSkinningHow to get DDR Menu to output root level element of subnavHow to get DDR Menu to output root level element of subnav



Try FREE
30 days money back guaranteed