Forget about the counters, but as you can see the only thing I really did was get the child categories and use the drawItem function to render them. The only thing I can think of in your case is that your currently active category is the shop’s default/root category. Your main categories are children of the shop’s default category, so they get outputted. Other than that, can’t come up with a quick explanation
Please forgive my stupidity on this subject, but i have been going for 2 hours and still i can’t get my left category menu to show
I’ve tried referencing the left.phtml file in my template Layout Update XML but the category menu wont show on the left. I know this is probably just something simple but for the life of me i cant figure it out.
Can anyone throw me a lifeline and point me in the right direction.
Any advice will be welcomed with many thanks and handfuls of removed hair
I just tried the same stuff by copying my Horizontal menu and adding width for the vertical stuff but the menu still comes over the menu and not on the side. Please find my menu.css file. I am also attaching my vert-nav.phtml. Please let me know where I went wrong.
Well, first post and thankful re: coding for the side navigation.. thankfully it is working great for me - the thing Im not sure how to do is make it so that the categories only show in the side navigation and not in the top navigation as there are too many categories for the top nav.
I would like to have a few showing in the top nav.. but not all.
Could anyone enlighten me how to not show all the categories in the top nav.. but make sure they show in the side nav?
Thanks for the reply - I understand what you are saying, but it means I won’t get the subcategories (I think?).
Obviously if you have alot of categories, they will not all fit onto the top nav.. therefore an alternative option is pretty important.. is this something already integrated into Magento? Considering I’m just getting the hang of the programme, it wouldn’t surprise me if I missed something here.
The other thing is I have applied Peter Hamilton’s side nav to the site, but it isnt SEO friendly, in the sense that search engines won’t spider the sub-categories - therefore, idealy, the current top nav structure would be great to have on, lets say the left, and only a chosen selection on the top nav.
I’m pretty sure many have achieved this already.. so any help with this would be appreciated loads!
is there a final solution yet? I mean, having the category list on the left-hand side of the page is a very straightforward thing in an online shop. What I cannot seem to get my head around is that changing the catalog.xml to contain something like this:
ul#nav_vert li a:link, ul#nav_vert li a:visited, ul#nav_vert li ul li a:link, ul#nav_vert li ul li a:visited, ul#nav_vert li ul li ul li a:link, ul#nav_vert li ul li ul li a:visited { font-size:11px; font-weight:bold; color:#999999; letter-spacing:0.1em; text-align:left; text-decoration:none; }
ul#nav_vert li a:link, ul#nav_vert li a:visited { line-height:20px; text-transform:uppercase; }
ul#nav_vert li ul li a:link, ul#nav_vert li ul li a:visited, ul#nav_vert li ul li ul li a:link, ul#nav_vert li ul li ul li a:visited { line-height:16px; text-transform:none; }
ul#nav_vert li a:hover, ul#nav_vert li.active a, ul#nav_vert li ul li a:hover, ul#nav_vert li ul li.active a, ul#nav_vert li ul li ul li a:hover, ul#nav_vert li ul li ul li.active a { color:#000000; }
ul#nav_vert li ul { margin:0 0 0 20px; }
ul#nav_vert li ul li a:hover, ul#nav_vert li ul li ul li a:hover { text-decoration:underline; }