![]() |
more menus and their static pages
I want to create more menus besides
help , spcecial. I want to create a menu called THIRD and one called FOURTH. When I add static pages through the admin, I want to specify to that static page if it should go into help, special, or THIRD, or FOURTH. This way everything is nicely grouped together. Further more, if visitor is any of the pages under HELP menu, the side menu where Categories is will disappear and ONLY the HELP menu will take its place. IF visitor is on any page of SPECIAL menu, only the SPECIAL menu shows on the side. same goes for 3rd and 4th. I did look through the forum and found how to add 1 menu, but not multiple. Further, there was nothing mentioned on how to organize static pages based on menu. and yes, i read this one: http://forum.x-cart.com/viewtopic.php?t=31366&highlight=help+menu but the above link is just to create one menu and throw all the statics there. thanks |
I usually do this by using the 'ORDERBY' variable. Going to take a while to post, will get back to you when I've got a free moment.
|
ill be waiting man... i hope i explained myself correctly.
thanks when u get a chance, take a look at my comment on 5 second delay thing on: http://forum.x-cart.com/viewtopic.php?t=13088&highlight= and let me know what u think. |
Hello ecommerce!
Please have a look at http://forum.x-cart.com/viewtopic.php?t=30112&highlight=static+pages. You have to create two templates, let's say pages_menu_first.tpl and pages_menu_second.tpl. In the first template file you can say Code:
{if $pages_menu[pg].orderby < 300} Code:
{if $pages_menu[pg].orderby > 300} Place two boxes in home.tpl by including Code:
{include file="new_menu_first.tpl" } Code:
{include file="new_menu_second.tpl" } |
Re: more menus and their static pages
Hello,
First, I'd like to thank you all for the great code. I have a question regarding the "orderby" code. I have managed to get static pages to populate a Horizontal sub-menu using the above code. I I would like to use this for multiple "Section" Main menu items. Example: Solutions: Static Pageid #1-10 Services: Static Pageid # 11-20 about: Static Pageid # 21-30 etc. Can I combine Code:
{if $pages_menu[pg].orderby < 300} and Code:
{if $pages_menu[pg].orderby > 300} to get one string that works high and low? Any thoughts would be appreciated. |
Re: more menus and their static pages
Hi,
I need the same at this moment. Has anybody got a solution already? Alex |
All times are GMT -8. The time now is 02:33 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.