Results 1 to 4 of 4
  1. #1
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Horizontal Drop Menu sort order of mega-menu

    I'm using the alternate ul generator from horizontal dropdown menu by get em fast. I'm wondering if anyone would know how to sort the categories submenu in alphebetical order vertically rather than horizontally? I looked through the categories_ul_generator.php but my inability to understand php got me lost pretty quick.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Horizontal Drop Menu sort order of mega-menu

    That would probably be very complex. You can't just sort vertically; you would have to sort horizontally and then put the items in an n-by-n array and flip it rows-for-columns (something I don't have practical experience with), and that might still mess up if there are sub-subcategories in the dropdown.
    The other possible approach, which actually has a chance of working in likely situations, would be to insert div wrapper tags into the final output string every so many items (calculated to yield the desired number of divs), and then give the divs a width and float them left so they sit side by side. My String Replace at Intervals mod in Free Addons can help with this. It is discussed in a forum thread where I worked out its base code with a poster developing a mega-menu display.

  3. #3
    Join Date
    Aug 2011
    Location
    Near Ottawa, Ontario, Canada
    Posts
    321
    Plugin Contributions
    0

    Default Re: Horizontal Drop Menu sort order of mega-menu

    Obviously one of those things that sounds simple in lay terms...

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Horizontal Drop Menu sort order of mega-menu

    A very tedious method you could use without new coding would be to give sort orders to the subcats so that they end up appearing as if they are sorted in columns. This would, however, cause odd sorting in other displays than the mega menu, if you have any other displays.

 

 

Similar Threads

  1. v151 Category Mega Drop Down Menu Help
    By philip937 in forum General Questions
    Replies: 19
    Last Post: 19 Apr 2013, 05:23 PM
  2. v139h Mega Drop Down Menu
    By gazag in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 May 2012, 10:22 AM
  3. CSS Horizontal Drop Down Menu
    By kaddie in forum All Other Contributions/Addons
    Replies: 3
    Last Post: 14 Apr 2010, 02:50 AM
  4. CSS Horizontal Drop Down menu - dropdown menu width...
    By intrium in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 19 Aug 2008, 06:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR