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

can't get static pages to parse smarty tags

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-06-2009, 10:23 AM
 
briansol briansol is offline
 

Member
  
Join Date: Aug 2009
Posts: 19
 

Default can't get static pages to parse smarty tags

1) i've enabled the option to parse in general settings
2) i'm using an ebedded page for the static page
3) in root, i made a custom wrapper page, /aboutus.php, which consists of the following code:

Code:
<?php include('skin1/pages/US/aboutus.html'); ?>

This way all the content is editable through the admin panel and I can use smarty tags (which aren't available on root static pages for some reason...)

I've used the outline for home.tpl as my template to include the std. header, etc.
Code:
{* $Id: home.tpl,v 1.88.2.14 2008/07/15 12:07:39 ferz Exp $ *} {if $printable ne ''} {include file="customer/home_printable.tpl"} {else} {config_load file="$skin_config"} {include file="meta.tpl" } {include file="rectangle_top.tpl" } {include file="head.tpl" } {if $active_modules.SnS_connector} {include file="modules/SnS_connector/header.tpl"} {/if} and the rest of my page html here....
The page prints out the exact code above, instead of parsing it.


Can anyone point out what i'm doing wrong?

This is on
4.1.12
__________________
xcart 4.1.12
Reply With Quote
  #2  
Old 08-06-2009, 10:50 AM
 
briansol briansol is offline
 

Member
  
Join Date: Aug 2009
Posts: 19
 

Default Re: can't get static pages to parse smarty tags

ok, i think i got this sorted...

instead of the include, i'm using smarty.

Code:
<?php require "./auth.php"; $location = ""; $smarty->assign("main","catalog"); # Assign the current location line $smarty->assign("location", $location); func_display("pages/US/aboutus.html",$smarty); ?>
__________________
xcart 4.1.12
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 09:47 AM.

   

 
X-Cart forums © 2001-2020