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/26/2012 10:03 AM
 
You sound like a programmer. Why not just try it?

Best wishes,
- Richard
Agile Development Consultant, Practitioner, and Trainer
www.dynamisys.co.uk
 
New Post
7/26/2012 11:17 AM
 

a programmer' solution   :)    :

function splitSubMenu(columns) {

    jQuery("div.sub").each(function (i) {
        if (i==1)
        {
            columns=2;
        }
        else
        {
            columns=3;
        }
        var items = jQuery(this).find('ul');
        var blockCount = columns;
.................


where i is the number of the menu, starting with 0

So, is there also a solution only with CSS? If yes, please guide me.

Catalin

 
New Post
7/26/2012 12:41 PM
 

I think the main reason the JS is used in the example is that although you can define columns with CSS3, browser support is not ideal. http://www.css3.info/preview/multi-co...

AFAIK the only reliable way to create cross browser (dynamic) columns is by wrapping them in HTML elements.
There are 2 ways you can do this I think for DDR menu; in the xslt template, or by using JS.

BTW, IMO this is more an HTML/CSS/Browser issue then a specific issue for this menu component.

 
New Post
7/26/2012 3:04 PM
 

Earlier this year I worked with SportsDirect to move their Lonsdale ecommerce site to DotNetNuke.  As you can see on that site, we needed to be able to show different menus in either 1, 2 or 3 columns.  I created a custom taxonomy vocabulary which included some CSS classes I wanted to use, and then assigned different pages on the site with the needed tags that could be read by the DDR Menu renderer.  In this case I used a Razor template so that I could read the page properties and then assign classes as appropriate.  I'm working on a blog post that explains all of this and should have it posted in a few hours.


Joe Brinkman
DNN Corp.
 
New Post
7/27/2012 6:46 PM
 

I posted Advanced Menu Design with DDRMenu today which shows exactly how to accomplish this using the standard DDRMenu with a Razor template.


Joe Brinkman
DNN Corp.
 
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