Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / how to add a new page like index.php?

how to add a new page like index.php?

Locked

Views: 2,033

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
23 Sep 2006, 10:21 AM
#1
soundworker avatar

soundworker

New Zenner

Join Date:
Jan 2005
Posts:
38
Plugin Contributions:
0

how to add a new page like index.php?

I need to use such site structure for search engine optimization.

https://www.mysite.com/index.php
https://www.mysite.com/dir1/index.php
https://www.mysite.com/dir2/index.php
https://www.mysite.com/dir3/index.php
....

so my question is how to copy index.php to sub directories?
I tried sometimes can't get it work.
I have no idea what should be included for those files to work like the root index file.

Thanks

23 Sep 2006, 10:24 AM
#2
soundworker avatar

soundworker

New Zenner

Join Date:
Jan 2005
Posts:
38
Plugin Contributions:
0

Re: how to add a new page like index.php?

that way, I think maybe it's possible to have each category to use unique theme design, unique header, unique color ... looks totaly different to other categories.

:)

I am not a skilled programmer, so if it's a newbie question please don't hesitate to reply it.

Thanks a lot

23 Sep 2006, 2:26 PM
#3
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: how to add a new page like index.php?

That isn't the way to achieve it the new look for pages at all if that is what you are trying to achieve.

The info is for how to create different looks for different pages can be found in the includes/templates/YOUR_TEMPLATE/css/ folder where there is information regarding css on a per page basis.

Also, look at includes/templates/YOUR_TEMPLATE/templates/tpl_main_page.php for information on how to make entire page display changes on a per page basis. The info is in the comments at the top of the file.

Hope that helps!

23 Sep 2006, 3:41 PM
#4
soundworker avatar

soundworker

New Zenner

Join Date:
Jan 2005
Posts:
38
Plugin Contributions:
0

Re: how to add a new page like index.php?

thanks
but my primary purpose is creating these pages to help me get better ranking on search engine.

I am currently use .html pages as a discription page for each category.
like this

https://www.mysite.com/index.php
https://www.mysite.com/keywords1/index.html
https://www.mysite.com/keywords2/index.html
https://www.mysite.com/keywords3/index.html
....

I changed the category links to redirect it to these .html pages before the real category index pages.

now I have achieved a good ranking by these URLs
https://www.mysite.com/keywords1/
https://www.mysite.com/keywords2/
https://www.mysite.com/keywords3/
....

While although I made the .html theme the same as my main zen-cart theme,
I can't get some function work on .html page, like shopping cart , or side box mods.
So I am thinking if I can use index.php files to replace those .html files.

I know little about .php coding.

I am not sure if I have discribed it in the right way.
Sorry for my poor English, if it's alittle confusing:)

Thanks

23 Sep 2006, 9:47 PM
#5
kobra avatar

kobra

Black Belt

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

Re: how to add a new page like index.php?

there are many, many Zen Cart sites that are ranked very high without all this. Just the standard ZenCart. Doing what you are attempting is counterproductive and will not necessarily increase your ranking and actually some penalize you for duplicate information.

24 Sep 2006, 2:06 AM
#6
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

Re: how to add a new page like index.php?

I agree with Kobra, you are overworking your search optimization. If you are just looking to vary the site style, follow Tina's advice. In terms of search optimization, there are plenty of techniques to increase your ranking without creating tiered duplicate index pages, which will lead to all kinds of upgrade trouble and seems a little shady...

24 Sep 2006, 11:37 AM
#7
tonkali avatar

tonkali

New Zenner

Join Date:
Sep 2006
Location:
NYC
Posts:
76
Plugin Contributions:
0

Re: how to add a new page like index.php?

TinaS:

Also, look at includes/templates/YOUR_TEMPLATE/templates/tpl_main_page.php for information on how to make entire page display changes on a per page basis. The info is in the comments at the top of the file.

Hope that helps!

Noobie on the loose :lookaroun ,

Someone please correct me if I'm wrong 'cause I'm still trying to get the hang of this but isn't the path:

includes/templates/YOUR_TEMPLATE/templates/common/tpl_main_page.php

?

24 Sep 2006, 1:21 PM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,606
Plugin Contributions:
0

Re: how to add a new page like index.php?

Yes, the common directory is correct.

24 Sep 2006, 2:28 PM
#9
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: how to add a new page like index.php?

OOOPS I added a directory - sorry bout that ....

includes/templates/YOUR_TEMPLATE/templates/tpl_main_page.php

SHOULD BE :
includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

Sorry bout that!

24 Sep 2006, 7:50 PM
#10
tonkali avatar

tonkali

New Zenner

Join Date:
Sep 2006
Location:
NYC
Posts:
76
Plugin Contributions:
0

Re: how to add a new page like index.php?

TinaS:

OOOPS I added a directory - sorry bout that ....

SHOULD BE :
includes/templates/YOUR_TEMPLATE/common/tpl_main_page.php

Sorry bout that!

Hey Tina,

No, don't think you added a directory but excluded one. In order to override would not the correct path be:

includes/templates/YOUR_TEMPLATE/templates/common/tpl_main_page.php

?

24 Sep 2006, 8:04 PM
#11
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: how to add a new page like index.php?

tonkali:

Hey Tina,

No, don't think you added a directory but excluded one. In order to override would not the correct path be:

includes/templates/YOUR_TEMPLATE/templates/common/tpl_main_page.php

?
No hun the /templates/ part of that is wrong

it is simply includes/templates/YOUR_TEMPLATE/common/

24 Sep 2006, 8:20 PM
#12
tonkali avatar

tonkali

New Zenner

Join Date:
Sep 2006
Location:
NYC
Posts:
76
Plugin Contributions:
0

Re: how to add a new page like index.php?

aaah right, that is what I actually have...honestly, i was looking at the directory structure :wink: I think i just needed some zzzzz.

another question if i may. i want the home page to have columns on the right and the product pages columns on the left, is this possible?

24 Sep 2006, 8:26 PM
#13
tonkali avatar

tonkali

New Zenner

Join Date:
Sep 2006
Location:
NYC
Posts:
76
Plugin Contributions:
0

Re: how to add a new page like index.php?

aah right, /YOUR_TEMPLATE/common/tpl_main_page.php is actually my directory structure...i swear i was looking at it ;) sorry

question: on main page i want columns to the right on the other pages columns to the left I would make this change on tpl_main_page.php?

thanks for the fast reply, you all are superIncred!

24 Sep 2006, 11:19 PM
#14
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: how to add a new page like index.php?

Yes this is possible by using the over rides as described in the comments on the tpl_main_page.php

That is exactly what I have done on a site I am developing :) It's actually very easy.

Hope that helps !