![]() |
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?
|
Re: Static Page and Smarty
Are you SURE you want to use a splash page? Those are SEO killers....
|
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?
|
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? |
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} |
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.
|
Re: Static Page and Smarty
does this mean there are no ways to display smarty tags in random pages?
|
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.
|
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.