Where can i edit Left Category menu
Top menu has its own "top_menu.tpl" file but none for the side menu..
Where can i find/edit the Left Category menu?... :? |
Re: Where can i edit Left Category menu
bump.. i would like to replace it with a custom menu...
|
Re: Where can i edit Left Category menu
It depends on what you want to achieve.
\XLite\View\TopCategories is the widget that renders the Categories menu. Depending on the menu mode, it uses different templates from the "[xc5]/skins/default/en/categories/[mode]/" directories. However, I guess you just want add another block to the side bar. If so, you should create either a new template, or a new widget (the PHP class) and add the Code:
@ListChild (list="sidebar.first", zone="customer", weight="100") You can read more about the @ListChild tag here: https://x-cart.atlassian.net/wiki/display/XDD/Templater+lists "sidebar.first" is the "list" for the left side bar. |
Re: Where can i edit Left Category menu
thanks for the quick reply.. is there a way to pull the sub-categories? can someone please help me with this code..
Code:
<div id="ddsidemenubar" class="markermenu"> |
Re: Where can i edit Left Category menu
Actually, it already can do this :-)
You just need to switch the widget mode to "tree" by creating a custom module and decorating the "defineWidgetParams()" method in the \XLite\View\TopCategories class as follows: PHP Code:
This should make the widget to generate HTML for the full categories tree (however, out of the box there are no CSS classes to display the tree properly, so you should add them yourself in your module). |
All times are GMT -8. The time now is 08:22 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.