bktnp Posted December 11, 2004 Posted December 11, 2004 I would like to know how does the collapsing and expanding of menu in catagories box is happening. I would like to learn it and understand it. Please do help me. Thank you New Learner
Jack_mcs Posted December 11, 2004 Posted December 11, 2004 The code in the index.php file has three sections: categories, products and home page. The categories section starts with the line if ($category_depth == 'nested') { If you go farther down the page you will see the else parts of that statment that is for the other sections. Intially, when you display your site, the home section is accessed. When a category is clicked, the category section is accessed. It reads in the appropriate data from the database and displays the categories. Jack Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. All of My Addons Get the latest versions of my addons Recommended SEO Addons
bktnp Posted December 12, 2004 Author Posted December 12, 2004 The code in the index.php file has three sections: categories, products and home page. The categories section starts with the lineif ($category_depth == 'nested') { If you go farther down the page you will see the else parts of that statment that is for the other sections. Intially, when you display your site, the home section is accessed. When a category is clicked, the category section is accessed. It reads in the appropriate data from the database and displays the categories. Jack <{POST_SNAPBACK}>
bktnp Posted December 12, 2004 Author Posted December 12, 2004 Thanks Jack. I thing I can carry on from here
Guest Posted December 13, 2004 Posted December 13, 2004 Actually, if you take a look at the categories box that should give a better indication of how the menu is collapsed (and expanded). Keep in mind that osC uses a top down approach to constructing the menu.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.