As per my requirement in current project i need to place custom menu which should have general pages as menu items like Home,About Us etc but in basically we get categories as nav-menu in magento so how to do this.
|
Goto
this code will output you the categories in the form of top menu if you don't use any categories hide this code or else paste this code before or after this code.
|
|||
|
Another way to do it would be to use Observer |
|||||
|
You can also have both.... Just create 1 category which will be shown in the navigation with all your product-categories below. (so it will be 1 pull down entry in your menu) Afterwards create different extra main categories (Home, About Us etc etc) and put in your .htaccess file a 301 redirect so if the menu wants them to be directed to the (empty) category About Us it will redirect them to the /aboutus CMS page. I think this redirection is a main requirement for almost all shops. |
|||
|