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)
-   -   How to exclude some static pages from the list? (https://forum.x-cart.com/showthread.php?t=22095)

NightFire 05-27-2006 04:05 AM

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.

balinor 05-27-2006 04:59 AM

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

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

NightFire 05-27-2006 05:02 AM

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 :wink:

NightFire 05-28-2006 02:31 AM

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.

geckoday 05-28-2006 05:39 AM

0 - 900
Code:

{if $pages_menu[pg].orderby le 900}

901+
Code:

{if $pages_menu[pg].orderby gt 900}

NightFire 05-28-2006 05:42 AM

Thanks, you saved my day :lol:

imclaudiah 11-19-2007 09:29 AM

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


All times are GMT -8. The time now is 04:14 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.