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

Static Page Help

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-26-2010, 08:17 AM
 
sharingsunshine sharingsunshine is offline
 

Senior Member
  
Join Date: Aug 2005
Location: Palmyra, VA
Posts: 149
 

Default Static Page Help

Hello,

I have recently upgraded to 4.3.2 on one of our sites and I need a php program to be called when static page 11 is displayed. Here is the code I put into the new pages.tpl page. Could you please let me know if this will work for 4.3.2 installations.

Code:
{* $Id: pages.tpl,v 1.10 2009/04/17 13:03:09 max Exp $ vim: set ts=2 sw=2 sts=2 et: *} {include file="rjw/frrship.tpl"}<br /> <h1>{* {$page_data.title} *}</h1> {capture name=dialog} {if $smarty.get.pageid eq "11"} {include file="rjw/sitemap.tpl"} {/if} {if $page_content ne ''} {if $config.General.parse_smarty_tags eq "Y"} {eval var=$page_content} {else} {$page_content} {/if} {/if} {/capture} {include file="customer/dialog.tpl" title=$page_data.title content=$smarty.capture.dialog noborder=true}

sitemap.tpl has the following code - I can run the url below without any problems

Code:
{php} include ("http://www.healthypetcorner.com/isearch2/sitemap.php"); {/php}

This coding worked fine on a 4.0.16 installation. So I just wanted to make sure something didn't need to be changed for the 4.3.2 installations.


Thanks,

Randal
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************

Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
Reply With Quote
  #2  
Old 08-26-2010, 08:19 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: Static Page Help

It should work but you can use

$page_data.pageid
instead of
$smarty.get.pageid
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote
  #3  
Old 08-26-2010, 01:07 PM
 
sharingsunshine sharingsunshine is offline
 

Senior Member
  
Join Date: Aug 2005
Location: Palmyra, VA
Posts: 149
 

Default Re: Static Page Help

Thanks for your help.

The old way only will work if you do it like this $smarty.get.pageid = rather than how I had it $smarty.get.pageid eq.

The difference being the = sign instead of the eq.

Hope that helps someone in the future.

Randal
__________________
***********************
Visit Our Other Web Sites!
∙ Nutritional Herbs and Supplements
<a href="http://www.theherbsplace.com"> The Herbs Place </a>
∙ Frugal Ideas and a Forum To Submit Your Questions
<a href="http://www.thefrugallife.com"> The Frugal Life </a>
∙ Healthy and Natural Pet Products
<a href="http://www.healthypetcorner.com"> Healthy Pet Corner </a>
***********************

Joined 08/02/05
X-Cart Gold Version 4.3.2
Linux RedHat Enterprise
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 07:46 AM.

   

 
X-Cart forums © 2001-2020