New Zenner
- Join Date:
- Aug 2006
- Posts:
- 36
- Plugin Contributions:
- 0
Define Page Status
Anyone know how to rename the Define Page Status?
Views: 3,249
New Zenner
Anyone know how to rename the Define Page Status?
Black Belt
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?
New Zenner
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.
Black Belt
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
New Zenner
I do not have a english.php file in my template.
Shouldn't this be really easy?
Zen Follower
Totally Zenned
It is really easy.
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.
New Zenner
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
Black Belt
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.
Zen Follower
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,
New Zenner
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:
Change the names in 'english.php' (in your template override) so that the labels show up correctly in the 'more_information.php' module.
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 -->
Copy 'tpl_page2_default.php' and the two other default files to /my_template/templates/.
Open 'tpl_page2_default.php' in a text editor and replace
<?php echo HEADING_TITLE; ?>
with
<?php echo BOX_INFORMATION_PAGE_2; ?>
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
Tell staff why this post should be reviewed.