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 Page and Smarty (https://forum.x-cart.com/showthread.php?t=47265)

spyderwoman 04-29-2009 07:18 AM

Static Page and Smarty
 
I want to create a static page to use as the entry point for our website but when I create a static page through the admin tool, if the page is not embeded I cant have it parse smarty code. Is there a way around this?

balinor 04-29-2009 07:21 AM

Re: Static Page and Smarty
 
Are you SURE you want to use a splash page? Those are SEO killers....

spyderwoman 04-29-2009 07:26 AM

Re: Static Page and Smarty
 
Really? Darn! I guess spash page is not what I mean per se. I guess what I mean is a customized home page. is that the same thing?

spyderwoman 04-29-2009 07:27 AM

Re: Static Page and Smarty
 
just to give you an idea of what I want to do...
https://www.greenpeanursery.com/cart/splash.html
then I want to customize the store to have that header and menu and then only have the subcategories show up on the side once in the store. does that make sense?

balinor 04-29-2009 07:33 AM

Re: Static Page and Smarty
 
You can do that with simple {if} statements. To hide something on the home page or show something on the home page only, use this code:

{if $main eq "catalog" and $current_category.category eq ""}
Stuff you want to show on the home page only
{else}
Stuff you want to show on every page BUT the home page
{/if}

spyderwoman 04-29-2009 07:50 AM

Re: Static Page and Smarty
 
i want to create a new header and footer to be used throughout, but then I want the center portion to be unique for the home page with no side boxes.

spyderwoman 04-29-2009 07:50 AM

Re: Static Page and Smarty
 
does this mean there are no ways to display smarty tags in random pages?

balinor 04-29-2009 07:51 AM

Re: Static Page and Smarty
 
Then that code will work great - customer/main/welcome.tpl is the code for the home page center section, customer/home.tpl contains the sidebars.

balinor 04-29-2009 07:51 AM

Re: Static Page and Smarty
 
You can't display smarty without the smarty engine - non-embedded static pages are just plain html, no php at all.


All times are GMT -8. The time now is 03:39 AM.

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