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

Static Pages Link Display

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 12-20-2007, 03:57 PM
 
finerpeter finerpeter is offline
 

Senior Member
  
Join Date: Jul 2006
Location: Montreal, QC
Posts: 159
 

Default 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!
__________________
www.finerribbon.com
X-Cart Vers: 4.5.0
Modified Creatively
Reply With Quote
  #2  
Old 12-21-2007, 06:56 PM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default 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.
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #3  
Old 12-22-2007, 06:05 PM
 
finerpeter finerpeter is offline
 

Senior Member
  
Join Date: Jul 2006
Location: Montreal, QC
Posts: 159
 

Default 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!
__________________
www.finerribbon.com
X-Cart Vers: 4.5.0
Modified Creatively
Reply With Quote
  #4  
Old 12-23-2007, 08:27 AM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Re: Static Pages Link Display

The only way I know is to hard code the links into the help section.
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #5  
Old 12-23-2007, 08:34 AM
 
hooter hooter is offline
 

X-Adept
  
Join Date: Dec 2004
Posts: 519
 

Default 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.
__________________
Blog for X-Cart | Ebay Auction Manager
Reply With Quote
  #6  
Old 12-23-2007, 09:43 AM
 
finerpeter finerpeter is offline
 

Senior Member
  
Join Date: Jul 2006
Location: Montreal, QC
Posts: 159
 

Default Re: Static Pages Link Display

Brilliant!

Thank you very much mates.
__________________
www.finerribbon.com
X-Cart Vers: 4.5.0
Modified Creatively
Reply With Quote
  #7  
Old 12-23-2007, 10:21 AM
 
Duramax 6.6L Duramax 6.6L is offline
 

X-Adept
  
Join Date: Dec 2006
Posts: 865
 

Default Re: Static Pages Link Display

Thank you for the if statement, I have been looking for something like that for some time now.
__________________
Xcart 5.1.6 Building New Store
Xcart4.6.4 Gold Plus
Xcart 4.6.4 Platinum
Smart Template,
Mail Chimp Upgrade
Checkout One (One Page Checkout)
Checkout One X-Payments Connector
Checkout One Deluxe Tools
Call For Price
On Sale Module
Buy Together Module
MAP Price MOD
Reply With Quote
  #8  
Old 12-23-2007, 10:26 AM
 
finerpeter finerpeter is offline
 

Senior Member
  
Join Date: Jul 2006
Location: Montreal, QC
Posts: 159
 

Default 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
__________________
www.finerribbon.com
X-Cart Vers: 4.5.0
Modified Creatively
Reply With Quote
  #9  
Old 03-25-2008, 10:20 PM
 
aerogear2000 aerogear2000 is offline
 

Senior Member
  
Join Date: Jul 2007
Posts: 143
 

Default 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
__________________
Runing on Linux server
X-cart 4.1.8 GOLD
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:38 AM.

   

 
X-Cart forums © 2001-2020