jackstringer Posted October 23, 2009 Posted October 23, 2009 I am trying to do the template on a online shop and I have been converting the table stucture over to a easier to modify <div> type layout. This is because the rest of the company's website uses a content management system with nice layout. I have hit a snag with creating the categories menu. I would like to simply have the data output to a <ul><li> tags and drop the whole table layout. For example; <div id="menu_vert"> <h2 class="accessibility">Navigation</h2> <ul> <li><a href="Homepage URL" title="Home Page>Home</a> <li class="currentpage"><h3>Online Shop</h3></li> <ul> <li><a href="Main Cat URL">Main Cat One</a></li> <ul> <li><a href="Sub Cat 1 URL">Sub Cat 1</a></li> <li><a href="Sub Cat 1 URL">Sub Cat 2</a></li> <li><a href="Sub Cat 1 URL">Sub Cat 3</a></li> </ul> <li><a href="Sub Cat 1 URL">Main Cat Two</a></li> <li><a href="Sub Cat 1 URL">Main Cat Three</a></li> </ul> </ul> </div> So has any one already got some php code I can use already typed up? I want it to show the main cats then once somone clicks on a main cat it will show the sub cats etc. The CSS I have does a nice job of tidying up the ul and makes it all look nice. Thanks in Advance Jack Stringer
spooks Posted October 23, 2009 Posted October 23, 2009 There are plenty of css menus in add-ons using that technique. Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
jackstringer Posted October 23, 2009 Author Posted October 23, 2009 I have had a look though a few templates but most still use the box class and that the one with all the nested tables. Have you know of one by name so I can search for it. Jack Stringer
spooks Posted October 23, 2009 Posted October 23, 2009 I have had a look though a few templates but most still use the box class and that the one with all the nested tables. Have you know of one by name so I can search for it. Jack Stringer I was talking of add-ons, not templates, look here http://addons.oscommerce.com/category?search=css+menu Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.