Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Dumb Question - Renaming Page 2, Page 3, Page 4

Dumb Question - Renaming Page 2, Page 3, Page 4

Locked

Views: 4,856

Results 1 to 12 of 12
This thread is locked. New replies are disabled.
4 Feb 2009, 1:49 AM
#1
stiggy100 avatar

stiggy100

Zen Follower

Join Date:
Jan 2009
Posts:
298
Plugin Contributions:
0

Dumb Question - Renaming Page 2, Page 3, Page 4

I am sorry to post this!

Have finally lost the plot. I need to rename the actual page headings for the pages (named page 2 3 and 4 in the 'more information' box)

I have renamed the headings in the english.php file but cannot for the life of me find and or work out where I can rename the actual page headings. Have done it 3 or 4 times before but cannot remember!

http://www.realfairtrade.com/index.php?main_page=page_2

If someone could just remind me of the file I would be extremely appreciative - I cannot find it here on the forums anywhere...

Cheers,

Steve

4 Feb 2009, 2:13 AM
#2
brent avatar

brent

Totally Zenned

Join Date:
Mar 2005
Location:
United Kingdom
Posts:
606
Plugin Contributions:
0

Re: Dumb Question - Renaming Page 2, Page 3, Page 4

The Developers Tool Kit is ideal for solving this sort of problem. You'll find it under Tools in Admin. Just enter Page 2 in the search and it will show you all files containing this phrase.

Hope that helps.

Brent

4 Feb 2009, 2:31 AM
#3
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: Dumb Question - Renaming Page 2, Page 3, Page 4

A little nudge here

The developers tool kit is good. What you need to do is edit the file includes/languages/english.php

Around line 149 edit this:

define('BOX_HEADING_MORE_INFORMATION', 'More Information');
define('BOX_INFORMATION_PAGE_2', 'Page 2');
define('BOX_INFORMATION_PAGE_3', 'Page 3');
define('BOX_INFORMATION_PAGE_4', 'Page 4');

To this:

define('BOX_HEADING_MORE_INFORMATION', 'My_title');
define('BOX_INFORMATION_PAGE_2', 'Important page');
define('BOX_INFORMATION_PAGE_3', 'Read this page');
define('BOX_INFORMATION_PAGE_4', 'Secret page!');

Save to includes/languages/custom_template/english.php

4 Feb 2009, 3:07 AM
#4
stiggy100 avatar

stiggy100

Zen Follower

Join Date:
Jan 2009
Posts:
298
Plugin Contributions:
0

Re: Dumb Question - Renaming Page 2, Page 3, Page 4

Thanks for the tip, I have just been using it and it will be a very valuable tool....

Right - Just for reference the file to open to make the change is:

includes/languages/english/your_template/page_2.php

and so on for pages 3 and 4 etc

I just about changed everything... What a loser I really am!!

Cheers Guys

PS - Bob Dog - Thanks, the above changes the page titles in the sidebox but not the actual page title it navigates to, I appreciate your help

4 Feb 2009, 3:08 AM
#5
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: Dumb Question - Renaming Page 2, Page 3, Page 4

Oh, goodie!

Have fun with your zen cart.

5 Feb 2009, 5:02 PM
#6
sevendeuce avatar

sevendeuce

New Zenner

Join Date:
Jan 2009
Posts:
2
Plugin Contributions:
0

Re: Dumb Question - Renaming Page 2, Page 3, Page 4

The files structure for this application is a mess for those of us that are just starting into it. It's so hard to find anything to change anything. Thanks for the info. I'll go back to struggling now.

5 Feb 2009, 8:53 PM
#7
rstevenson avatar

rstevenson

Totally Zenned

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

Re: Dumb Question - Renaming Page 2, Page 3, Page 4

The file structure is not a mess, which would imply there was something mistaken in it. It is, however, complicated. Which is normal for complicated software like Zen Cart.

We all struggle at first, because we have to learn the complicated parts. But, just like hitting yourself on the head with a hammer, it feels good when you stop. :P

Rob

5 Feb 2009, 9:00 PM
#8
bobdog avatar

bobdog

Totally Zenned

Join Date:
Mar 2006
Location:
Fresno, California
Posts:
590
Plugin Contributions:
0

Re: Dumb Question - Renaming Page 2, Page 3, Page 4

stiggy100:

Thanks for the tip, I have just been using it and it will be a very valuable tool....

Right - Just for reference the file to open to make the change is:

includes/languages/english/your_template/page_2.php

and so on for pages 3 and 4 etc

I just about changed everything... What a loser I really am!!

Cheers Guys

PS - Bob Dog - Thanks, the above changes the page titles in the sidebox but not the actual page title it navigates to, I appreciate your help

Oh. To change the page name go to:

includes/languages/english/page_2.php and so on.

define('NAVBAR_TITLE', 'Page 2');
define('HEADING_TITLE', 'Page 2');

save to your_template

28 Nov 2009, 7:56 PM
#9
blackwolf avatar

blackwolf

New Zenner

Join Date:
Sep 2009
Location:
Liverpool
Posts:
96
Plugin Contributions:
0

Re: Dumb Question - Renaming Page 2, Page 3, Page 4

Sorry for reopening this thread.

One of my pages is a Define Page and I have changed the title of the page but the URL in the browser address b ar still reads "http://blackwolf-graphics.co.uk/index.php?main_page=page_2" and i want it to read "http://blackwolf-graphics.co.uk/index.php?main_page=gallery"

What do I edit to change this Or will it cause too many problems?

28 Nov 2009, 8:25 PM
#10
kobra avatar

kobra

Black Belt

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

Re: Dumb Question - Renaming Page 2, Page 3, Page 4

blackwolf,
page_1 etc are page names created/coded as is
See/get the about us addon to view the 8 items necessary to create a new define page

30 Nov 2009, 6:16 PM
#11
blackwolf avatar

blackwolf

New Zenner

Join Date:
Sep 2009
Location:
Liverpool
Posts:
96
Plugin Contributions:
0

Re: Dumb Question - Renaming Page 2, Page 3, Page 4

Ok thanks.

10 Dec 2009, 7:33 PM
#12
ncflanagan avatar

ncflanagan

New Zenner

Join Date:
Nov 2009
Posts:
14
Plugin Contributions:
0

Re: Dumb Question - Renaming Page 2, Page 3, Page 4

thank you! just what I was looking for!!! :D