X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   more menus and their static pages (https://forum.x-cart.com/showthread.php?t=24113)

ecommerce 08-15-2006 11:16 AM

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

balinor 08-15-2006 02:57 PM

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.

ecommerce 08-15-2006 03:04 PM

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.

fspc 08-17-2006 12:48 AM

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}
to display only static pages with a position number lower than 300. In the second template file you say
Code:

{if $pages_menu[pg].orderby > 300}
to display the rest.

Place two boxes in home.tpl by including
Code:

{include file="new_menu_first.tpl" }
and
Code:

{include file="new_menu_second.tpl" }
and let each box address the corresponding pages_menu template.

digidrum 09-14-2006 04:33 PM

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.

alexbaat 11-16-2006 06:04 AM

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.