Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

more menus and their static pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-15-2006, 11:16 AM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default 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
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #2  
Old 08-15-2006, 02:57 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 08-15-2006, 03:04 PM
 
ecommerce ecommerce is offline
 

eXpert
  
Join Date: Jul 2006
Posts: 267
 

Default

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.
__________________
X-Cart 4.0.18 DBest
Reply With Quote
  #4  
Old 08-17-2006, 12:48 AM
 
fspc fspc is offline
 

Newbie
  
Join Date: Jul 2006
Posts: 1
 

Default

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.
__________________
Xcart Pro 4.1.2
Reply With Quote
  #5  
Old 09-14-2006, 04:33 PM
 
digidrum digidrum is offline
 

Member
  
Join Date: Nov 2004
Location: Los Angeles, CA
Posts: 18
 

Default 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.
__________________
X-Cart 4.0.7 (unix)
Custom Mods
Virtual Dedicated Server -
Genuine Intel, Intel(R) Xeon(TM) CPU 2.80GHz
psa v7.5.4_build75051014.16 os_FedoraCore 2
Linux 2.4.20-021stab028.3.777-enterprise
PHP 4.4.2
Reply With Quote
  #6  
Old 11-16-2006, 06:04 AM
 
alexbaat alexbaat is offline
 

Newbie
  
Join Date: Jul 2006
Posts: 3
 

Default Re: more menus and their static pages

Hi,

I need the same at this moment. Has anybody got a solution already?

Alex
__________________
4.1.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:25 AM.

   

 
X-Cart forums © 2001-2020