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)
-   -   Static Pages Link Display (https://forum.x-cart.com/showthread.php?t=36294)

finerpeter 12-20-2007 03:57 PM

Static Pages Link Display
 
Hello mates,

I have a question with regards to the static pages feature which if any of you can offer advice I'd greatly appreciate it.

I want to add some tutorials on my site through the static page feature, but my problem is that anytime I add a new static page, it ends up being listed under the HELP section on my homepage www.finerribbon.com.

Is there a way I can stop the link from showing up on the customer storefront?

Thanks in advance for all advice and help.

Good luck!

Duramax 6.6L 12-21-2007 06:56 PM

Re: Static Pages Link Display
 
In the skin1 folder look for the help.tpl file.
Inside that file look for this line:

Code:
{include file="pages_menu.tpl"}


Change it to:
Code:
{*{include file="pages_menu.tpl"}*}

This will prevent the static pages showing up in the help section.

finerpeter 12-22-2007 06:05 PM

Re: Static Pages Link Display
 
Many thanks for your reply and advice mate.

One question; This mod is going to disable all static pages created so far from showing up, is there a way where we can be selective about it? Meaning choose which page we would like to display and which not?

I'm presuming it's all or none but I'd appreciate your thoughts on this.

Many thanks!

Duramax 6.6L 12-23-2007 08:27 AM

Re: Static Pages Link Display
 
The only way I know is to hard code the links into the help section.

hooter 12-23-2007 08:34 AM

Re: Static Pages Link Display
 
Quote:

Originally Posted by finerpeter
Many thanks for your reply and advice mate.

One question; This mod is going to disable all static pages created so far from showing up, is there a way where we can be selective about it? Meaning choose which page we would like to display and which not?

I'm presuming it's all or none but I'd appreciate your thoughts on this.

Many thanks!

Hello,

With a simple if/then construct you can control which embedded pages appear. e.g.
Code:

{if $pages_menu[pg].orderby gt "900"}
<a href="pages.php?pageid={$pages_menu[pg].pageid}" class="VertMenuItems">{$pages_menu[pg].title}</a>
{/if}

Then in your xcart admin static page interface, assign a POS of greater than 900 for any pages you want to appear in that specific menu. Those with a POS of 900 or less will not appear.

finerpeter 12-23-2007 09:43 AM

Re: Static Pages Link Display
 
Brilliant!

Thank you very much mates.

Duramax 6.6L 12-23-2007 10:21 AM

Re: Static Pages Link Display
 
Thank you for the if statement, I have been looking for something like that for some time now.

finerpeter 12-23-2007 10:26 AM

Re: Static Pages Link Display
 
Just a clarification, we should add this if statement to the help.tpl file correct?

UPDATE: the statement should be added to the /skin1/pages_menu.tpl - Thanks to hooter for the info :-)

aerogear2000 03-25-2008 10:20 PM

Re: Static Pages Link Display
 
finerpeter, can you copy and paste your pages_menu.tpl code, I enter the code it don't seem to work


All times are GMT -8. The time now is 05:43 PM.

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