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

Creating Multiple menus for static pages

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-25-2007, 08:17 PM
 
Tye Tye is offline
 

eXpert
  
Join Date: Nov 2002
Location: Australia
Posts: 284
 

Default Creating Multiple menus for static pages

Hi - I've using the info at http://forum.x-cart.com/showthread.php?t=24054 to make a separate menu for my static pages, but is there a way to create 2 menus and split your static pages between the 2.

I'd like to do this dynamically if possible without hard coding.

Thanks
__________________
Today is a beautiful day, grab it while you can and live it to the full

Version 4.2.3 UNIX
Reply With Quote
  #2  
Old 09-25-2007, 08:19 PM
 
Tye Tye is offline
 

eXpert
  
Join Date: Nov 2002
Location: Australia
Posts: 284
 

Default Re: Creating Multiple menus for static pages

Another similar problem I have is that I would like to make a shipping information page which goes in the help menu... but I have split my static pages from the help menu... is it possible to make a new help menu item?
__________________
Today is a beautiful day, grab it while you can and live it to the full

Version 4.2.3 UNIX
Reply With Quote
  #3  
Old 09-26-2007, 07:13 PM
 
Tye Tye is offline
 

eXpert
  
Join Date: Nov 2002
Location: Australia
Posts: 284
 

Default Re: Creating Multiple menus for static pages

OK - so the only way to do this is by hard coding then?
__________________
Today is a beautiful day, grab it while you can and live it to the full

Version 4.2.3 UNIX
Reply With Quote
  #4  
Old 10-04-2007, 03:48 PM
 
ozchris ozchris is offline
 

Senior Member
  
Join Date: Jun 2007
Posts: 100
 

Default Re: Creating Multiple menus for static pages

As a quick and nasty, I hardcoded mine, but it should be possible to do it by the pos number, as others have with categories.

So for now I've done:
{if $pages_menu[pg].pageid ne 6 and $pages_menu[pg].pageid ne 7}
inside pages_menu.tpl

but I would have preferred to do something like:
{if $pages_menu[pg].pos < 500}

Anyone know the correct syntax?
I've run out of time for now.
__________________
Linux. Apache. PHP 5.2
Site 1 - now xcart 4.4.1 DSEFU, AOM, RMA, Magnifier, Upsells. Heavy mods for Australian postcode validation and extra Aussie payment method.
Site 2 - xcart 4.1.11, DSEFU
Site 3 - xcart 4.2
Site 4 - xcart 4.3
Reply With Quote
  #5  
Old 10-08-2007, 04:54 PM
 
Tye Tye is offline
 

eXpert
  
Join Date: Nov 2002
Location: Australia
Posts: 284
 

Default Re: Creating Multiple menus for static pages

Thanks for sending me in the right direction ozchris - I got the code from this thread:
http://forum.x-cart.com/showthread.php?t=34168
__________________
Today is a beautiful day, grab it while you can and live it to the full

Version 4.2.3 UNIX
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 11:00 AM.

   

 
X-Cart forums © 2001-2020