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 with diff. no. of columns on diff. menusDDR menu with diff. no. of columns on diff. menus
Previous
 
Next
New Post
7/28/2012 3:10 AM
 
Hi

Based on my mega2dnn menu I also written an article with example on how to do this with xsl only

http://www.dnnhero.com/Article/tabid/212/ArticleID/28/Beginning-XSLT-with-DDRMenu-for-DotNetNuke-Part-3-3.aspx

what you could do for intance is check the prant position or the parent name with an xsl:choose and for the specified parent items you wnat a differnt column setup just call tempalte with different setup

Armand
 
New Post
1/24/2013 11:24 AM
 
Hi Armand,
I read through the 3 tutorials you have on editing the xslt for the megamenu and the wiki (http://www.dotnetnuke.com/Resources/W...) but am still having difficulty getting changes to the xslt to work. First time working in xslt.

I'm also trying to use 4 columns for one dropdown menu and 1 column for the rest of the links.

So the logic of what I need to do, I understand as this:
-(1) set the default columns to 1 for all submenus
-(2) check if the current page is "ExamplePage"
-(3) if page is "ExamplePage" then set columns to 4

And my best attempt at the xslt for this process:
(1) 1 (line 6 of Mega2DNN.xslt)
(2-3)






4



Any advice appreciated,
Dan
 
New Post
1/24/2013 11:28 AM
 
Code is not showing up for some reason. Carrots removed:

(1)
xsl:param name="subMenuColumns"1/xsl:param

(2-3)
xsl:param name="url"/

xsl:value-of select="$CurrentPageUrl"/

xsl:choose>
xsl:when test="url" = 'examplepage'
xsl:param name="subMenuColumns"4/xsl:param
/xsl:when
/xsl:choose
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DDR menu with diff. no. of columns on diff. menusDDR menu with diff. no. of columns on diff. menus


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