Zen Cart Logo

Define Page Status

Locked

Views: 3,249

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
11 Jan 2008, 12:16 AM
#1
ash_whitehair avatar

ash_whitehair

New Zenner

Join Date:
Aug 2006
Posts:
36
Plugin Contributions:
0

Define Page Status

Anyone know how to rename the Define Page Status?

11 Jan 2008, 12:38 AM
#2
kobra avatar

kobra

Black Belt

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

Re: Define Page Status

Anyone know how to rename the Define Page Status?
Not clear what you are trying to do?? Care to add some explanation and your actual goal?

11 Jan 2008, 12:44 AM
#3
ash_whitehair avatar

ash_whitehair

New Zenner

Join Date:
Aug 2006
Posts:
36
Plugin Contributions:
0

Re: Define Page Status

Sorry that was a bit brief.

I've just installed zen cart and on the left hand side there are the define page editor things, well below them are page 1, page 2, page 3. I wish to rename these.

Do you know how?

Thanks for replying.

11 Jan 2008, 12:48 AM
#4
kobra avatar

kobra

Black Belt

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

Re: Define Page Status

To change the description download your templates english.php file and find the defines for these. Edit the entry between the set of single quotes and save & upload

11 Jan 2008, 5:09 PM
#5
ash_whitehair avatar

ash_whitehair

New Zenner

Join Date:
Aug 2006
Posts:
36
Plugin Contributions:
0

Re: Define Page Status

I do not have a english.php file in my template.

Shouldn't this be really easy?

11 Jan 2008, 5:24 PM
#7
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

Re: Define Page Status

It is really easy.

  1. Create a folder for your template in includes/languages
  2. Copy includes/languages/english.php into the new folder
  3. Edit includes/languages/YOUR_TEMPLATE/english.php as described in the tutorial Lesli posted.

The best way to edit the file is locally on your computer with something like Notepad++ or Crimson Editor and then FTP it to the corresponding location on your website.

17 Jan 2008, 8:52 AM
#8
senortim avatar

senortim

New Zenner

Join Date:
Jul 2007
Posts:
75
Plugin Contributions:
0

Re: Define Page Status

I figured out how to change the labels for these Define Pages in english.php for my 'more_information' box. However, when I click on the links, the page itself still says (e.g.) "Page 2" and then the text I added in Admin/Tools/Define Pages Editor.

I have searched all over for where 'HEADING_TITLE' is defined for these pages but there are so many different uses of this "constant", I can't tell which one applies to the define pages.

Any help? What am I missing?

Thanks,
Tim

17 Jan 2008, 10:54 AM
#9
kobra avatar

kobra

Black Belt

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

Re: Define Page Status

However, when I click on the links, the page itself still says (e.g.) "Page 2"
If you are refering to the address in the browser then correct as you have only altered the title for page_2 in eglish.php.

The remainder of the file system still sees this as page_2

There are about 8 files/places that would require alteration to have this titled everywhere to your title. This system is outlined in the downloadable module "about us" in the downloads section. Many have a time at grasping this concept.

17 Jan 2008, 1:37 PM
#10
madmumbler avatar

madmumbler

Zen Follower

Join Date:
Dec 2005
Location:
SWFL
Posts:
450
Plugin Contributions:
0

Re: Define Page Status

Use the Tools --> Developers Tool Kit to search the files for all the instances of the "Page_" or whatever you want to change. It will list all the files, you can find the ones that pertain to your template and change them.

HTH,

17 Jan 2008, 8:36 PM
#11
senortim avatar

senortim

New Zenner

Join Date:
Jul 2007
Posts:
75
Plugin Contributions:
0

Re: Define Page Status

OK, so searching for "Page_" didn't work very well. It returned about 1,000 hits and even after checking and changing every one that made any sense, my problem still existed.

So I found another solution:

  1. Change the names in 'english.php' (in your template override) so that the labels show up correctly in the 'more_information.php' module.

  2. Edit the contents of Page 2, Page 3, etc. using Admin/Tools/Define Pages Editor. I put my page title in an HTML comment so that I'd know in the future what I was editing -- e.g., <!-- My Title -->

  3. Copy 'tpl_page2_default.php' and the two other default files to /my_template/templates/.

  4. Open 'tpl_page2_default.php' in a text editor and replace

<?php echo HEADING_TITLE; ?>

with

<?php echo BOX_INFORMATION_PAGE_2; ?>
  1. Repeat step 4 for each of the define pages, changing the page number in the code, then upload these (and the english.php file) to your server.

For the future, it would be great if this feature was integrated into the Admin panel, as well as the ability to add new pages.

HTH,
Tim