Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Homepage theme/layout ONLY

Homepage theme/layout ONLY

Locked

Views: 1,124

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
16 Mar 2009, 8:47 PM
#1
visua avatar

visua

New Zenner

Join Date:
May 2008
Posts:
18
Plugin Contributions:
0

Homepage theme/layout ONLY

Hey guys I am using ZenCart 1.3.8a and i want to change the front page template.

I tried messing with the tpl_index_default.php page, however this seems to only control the content inside the center column of the index page.

I want my layout to only be changed on the front page. Having my boxes displayed horizontally so i can add some flash center peice on the front page.

Anyone know the files and or methods to accomplish this?

thanks so much!

Mike

17 Mar 2009, 1:37 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Homepage theme/layout ONLY

Have a look inside a copy of tpl_main_page.php as there is are many commented pieces of code to do several things

17 Mar 2009, 7:40 PM
#3
visua avatar

visua

New Zenner

Join Date:
May 2008
Posts:
18
Plugin Contributions:
0

Re: Homepage theme/layout ONLY

Kobra, thanks for the response!

Would i put the file in /index/ or /home/ ?

Thanks so much!

18 Mar 2009, 12:34 AM
#4
rstevenson avatar

rstevenson

Totally Zenned

Join Date:
Nov 2006
Location:
Dartmouth, NS Canada
Posts:
2,400
Plugin Contributions:
0

Re: Homepage theme/layout ONLY

I believe your modified copy of the file would go into...

includes/templates/YOUR-TEMPLATE/common/

Rob

18 Mar 2009, 2:58 AM
#5
visua avatar

visua

New Zenner

Join Date:
May 2008
Posts:
18
Plugin Contributions:
0

Re: Homepage theme/layout ONLY

Yes, how ever I only want to override the homepage layout. Not every page.

I tried throwing the file in /index/ this also over-rides the entire website layout including all sub-pages/category pages etc.

I'm looking for the homepage layout only

Thanks for help so far!! :)

EDIT

I have solved the problem.

you need to have tpl_main_page.php inside of /common/ as well as /index/

**/common/tpl_main_page.php ** // entire site layout
/index/tpl_main_page.php // homepage layout only

18 Mar 2009, 6:11 PM
#6
visua avatar

visua

New Zenner

Join Date:
May 2008
Posts:
18
Plugin Contributions:
0

Re: Homepage theme/layout ONLY

Houston we have a problem!

It seems as if the tpl_main_page.php in my /index/ also over-rides the category pages, but not my EZ-Pages or some of the login/signup pages.

you can see the problem here thermafilm[dot]com

the homepage has a top banner/focus image that should only be displayed on THAT page. Should i copy tpl_main_page into another folder to keep this from being overridden?

Also, does anyone know if it is possible to re-arrange the boxes on the homepage only? I would like to have the information box above the 'shop' box on the front page, but on all others to be below the shopping box.

Thanks so much.

19 Mar 2009, 4:12 PM
#8
visua avatar

visua

New Zenner

Join Date:
May 2008
Posts:
18
Plugin Contributions:
0

Re: Homepage theme/layout ONLY

Misty, thanks I will have to check that out.

I am not sure what you mean by it is altered for the homepage only.

I am just looking for control over the state in wich the homepage is being displayed so I can have a unique layout while at the index page.