View Single Post
  #12  
Old 10-06-2005, 11:58 AM
 
instinctual instinctual is offline
 

eXpert
  
Join Date: Nov 2003
Posts: 247
 

Default

sure, first you gotta consider though that rectangle_top.tpl and rectangle_bottom.tpl ultimately decide alot of things about the "outside" table of your entire catalog...so that said, usually what I do in order to have a completely custom homepage vs. the rest of the catalog site is I get rid of everything in rectangle_top.tpl and put in my own "header" code in that file - also eliminating everything in head.tpl or head_customer.tpl except for keeping track of necessary tags like the categories include, ,etc. that we may want to include in the design somewhere else.

Then, in those files, I use the tag I last mentioned {if $main eq "catalog" and $current_category.category eq ""} to provide a totally different "header" for if it's the homepage, and then in the rectangle_bottom.tpl I use that tag again to provide my "footer" for the homepage and non-homepage pages.

{if $main eq "catalog" and $current_category.category eq ""}
Homepage html code - beginning from just below the body tag in your template, down to where you want your content to show up.
{else}
regular site html - however you want that setup.
{/if}

Sometimes, it's necessary to alter the <body> tag as well per homepage or deeper page, and that can be done in the same manner in home.tpl, or by calling in a different .css depending on homepage or not.

Make sense?
__________________
Instinctual
8,000 feet up in the Rocky Mountains of Colorado
X-Cart Versions 3.5.x - 4.0.x

IF you xcart, THEN you prosper, ELSE you fail. ELSEIF xcart fails, THEN you fix it, all the WHILE {loop}\'ing {section}\'s to feed your $smarty mind.
Reply With Quote