osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

'Category Box as Nested Unordered List for EZ(er) CSS & Dynamic menus v 1.00

This is a discussion on 'Category Box as Nested Unordered List for EZ(er) CSS & Dynamic menus v 1.00 within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; I fixed a small issue on the last file with multiple classes not separated correctly. I also added a levels ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 06-10-2008, 09:15 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,979
Thanks: 80
Thanked 345 Times in 324 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post 'Category Box as Nested Unordered List for EZ(er) CSS & Dynamic menus v 1.00

I fixed a small issue on the last file with multiple classes not separated correctly. I also added a levels identifier for the links, it allowed me to have more fine-tuned control.

Some CSS tips: you can use the multiple classes to drill down exactly how you want different levels to look. For example, I have the links on level 2 (starts at 0 so 1 is 2) turn red when it is the selected category:
#nav li.selected.cat_lev_1 a.link_lev_1 { color: red;}
Note: multiple classes may not work with some older browsers.

Two Main Fixes:

1) Incorporated category levels changes from "yourmanstan". His addition broke the Selected/Parent classes, so that's fixed now. I also added the levels to the links themselves.

2) Moved the category count outside of the link. This is the behavior of the original category box. I liked it better as it gave me more control of modifying how the numbers look.

If you want to change it back, replace lines 187-191 with this:
$output .= ' (' . $products_in_category . ')';
}
}

$output .= '';

More...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates designed for osCMax 2. Loyalty discounts up to 30% off!
    Each purchase supports the osCMax project with much needed funds!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. Default multi server configuration for exceptional performance!

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Advertisement
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
'Category Box as Nested Unordered List for EZ(er) CSS & Dynamic menus v 1.00 michael_s New osCommerce Contributions 0 06-10-2008 08:00 PM
'Category Box as Nested Unordered List for EZ(er) CSS & Dynamic menus v 1.00 michael_s New osCommerce Contributions 0 06-10-2008 07:30 PM
'Category Box as Nested Unordered List for EZ(er) CSS & Dynamic menus v 1.00 michael_s New osCommerce Contributions 0 07-06-2007 12:03 AM
'Category Box as Nested Unordered List for EZ(er) CSS & Dynamic menus v 1.00 michael_s New osCommerce Contributions 0 03-03-2007 09:02 PM
Category list Box starview osCommerce 2.2 Modification Help 1 07-08-2004 03:14 PM


All times are GMT -8. The time now is 06:12 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax