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

How to exclude some static pages from the list?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-27-2006, 04:05 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default How to exclude some static pages from the list?

Hi,

I'm trying to setup my static pages into two menu's.
One menu with static pages for only information about products: static pages indexed from 0 - 900
2nd menu with static pages for only information about help subjects: static pages indexed from 900 - 999

So I tried the following.

Made a new menu, included thie pages_menu.tpl
In pages_menu.tpl I added this code:
Code:
{if $pages_menu[pg].orderby ne 900}
This works very good.

And made a new template called: pages_menu_help.tpl
And thats one is included in help.tpl

Unfortunately I don't know the code how to show only pages from 900 and above. The code above shows only pages indexed from 0-900.

It must be really simple, but I just don't know the code for it anymore.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #2  
Old 05-27-2006, 04:59 AM
 
balinor balinor is offline
 

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

Default

Weren't you already asking for this in this thread?

http://forum.x-cart.com/viewtopic.php?p=132447
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 05-27-2006, 05:02 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default

Quote:
Originally Posted by balinor
Weren't you already asking for this in this thread?

http://forum.x-cart.com/viewtopic.php?p=132447


Yes, I was. Didn't knew it was still there, but the problem hasn't been solved yet. I deleted my old topic. The information in this topic is more detailed. I hope someone could help me with this.

You must have got a very good memory if you remember all those topics
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #4  
Old 05-28-2006, 02:31 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default

About the code:

This code only exclude the static page with the number 900
Code:
{if $pages_menu[pg].orderby ne 900}

I can set the number on 999. But is it also possible to exclude a range of number? For example 0 - 900. That would solve the problem.
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #5  
Old 05-28-2006, 05:39 AM
 
geckoday geckoday is offline
 

X-Wizard
  
Join Date: Aug 2005
Posts: 1,073
 

Default

0 - 900
Code:
{if $pages_menu[pg].orderby le 900}

901+
Code:
{if $pages_menu[pg].orderby gt 900}
__________________
Manuka Bay Company
X-Cart Version 4.0.19 [Linux]

UGG Boots and other fine sheepskin products
http://www.snowriver.com
Reply With Quote
  #6  
Old 05-28-2006, 05:42 AM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default

Thanks, you saved my day
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote
  #7  
Old 11-19-2007, 09:29 AM
 
imclaudiah imclaudiah is offline
 

Advanced Member
  
Join Date: Aug 2005
Posts: 81
 

Default Re: How to exclude some static pages from the list?

Hi, I cannot figure this out.
I followed this post:
http://forum.x-cart.com/showthread.php?t=22582&highlight=static
And created a new menu where the static pages show up. (customer_service.tpl), it works great.

I need to be able to rename the new menu: Customer Service

I would also like to separate them like this example but cannot understand how to include. Is there any way you can jot down the instructions a little bit more detailed?

Thank you so very much!!

Claudia
__________________
Claudia
X-Cart 4.1.8 Gold
Configurator
Fancy Categories
Special Offers
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 08:08 AM.

   

 
X-Cart forums © 2001-2020