![]() |
Styling Category Navigation |
Post Reply
|
| Author | |
colfaxintl
Newbie
Joined: 08-September-2009 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Topic: Styling Category NavigationPosted: 10-September-2009 at 1:10am |
|
Can the main categories, sub categories and ... be styled differently? In the generate storefront navigation feature, it seems to me that one can assign only a single class to the entire navigation, so there cannot be any distinctiveness.
Thanks,
Manish
|
|
![]() |
|
Greg Dinger
Certified ProductCart Developers
Joined: 23-September-2006 Location: United States Status: Offline Points: 238 |
Post Options
Thanks(0)
Quote Reply
Posted: 10-September-2009 at 1:18am |
|
Our approach has been to use a revised version of the nav generator which create unordered lists, then style the different levels accordingly. It means custom code - but if you want to achieve a particular look, sometimes that's the only solution.
|
|
![]() |
|
Hamish
Admin Group
Joined: 12-October-2006 Location: United Kingdom Status: Offline Points: 56 |
Post Options
Thanks(0)
Quote Reply
Posted: 10-September-2009 at 6:55am |
|
Your options depend on how often your navigation is going to change and how that change would be achieved :-
- Hardly ever - You could code the navigation completely independantly of the generated navigation. Downside - all updates require someone who is comfortable amending code. Upside - Complete control over the styling of every element. - Occasionally - As per the suggestion from Greg (and the best route IMHO). Downside, one off effort to amend the code if amending the supplied CSS does not meet your needs. Upside, regenerating a new copy of the navigation is very easy. - Very Frequently - Investigate dynamic navigation, where the navigation is generated on the fly - code available from the EarlyImpact developers corner if memory serves me right. Downside - an overhead on each page as the DB is queried each time a page is displayed. Upside, navigation is always correct. For almost every site this is overkill. |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |