hey guys
I've got a small question: how do i change the sidebox of the ez-pages header to something else. Right now it says "Imprtant Links"
You can see example in my site: www.academyfloor.com
Thanks for your help!!
hey guys
I've got a small question: how do i change the sidebox of the ez-pages header to something else. Right now it says "Imprtant Links"
You can see example in my site: www.academyfloor.com
Thanks for your help!!
Figure it out yourself by using this tool. It will help you out with a lot of other questions that may come along:
In admin, go to tools > Developer's Toolkit and search on "Important Links" (without the quotation marks). I would start in the last section of the tookit under "Lookup in all files".
This will display everyplace the term "Important Links" is coded in. You'll probably come up with only one match and it will contain a define statement. Just change "Important Links" to whatever you want it to say.
If you get more than one match during the search, look for a file under the languages subdirectory with a filename that seems to match the box or page you are trying to revise.
You can use this tool to lookup which file contains certain text. It's great for tracking down problems where something is quoted in an error message and for finding where you previously entered custom language.
BTW, if you find your match in one of the core files, you probably should consider using the override method to put your custom title into your own custom template file. If you are not familiar with the override system, now is the time to learn and use it. Plenty of info in the FAQ and Wiki on override templates.
Ron
www.aspenshopsonline.com - ZenCart 1.3.9h
www.wilkssupply.com - ZenCart 1.3.9h
www.un-du.net - ZenCart 1.3.8a
thank you!
I already had a lot of chages but i couldn't find this one... nice tool, i never used it until now... I can see how so much easier my life could be.... hahaha
anyway, as is said, i already change a lot of files, i'm not sure if they are core files or not... can i use this overide system now? will my changes will be the same if I'll update the zencart...?
10x for helping...
Great question and great Tool ! Thanks.![]()
Hi,
I'm looking for the same bit to edit, so I did what was said above.
I came up with this result: /var/www/html/zen-cart-update/includes/languages/english/extra_definitions/ez_pages_definitions.php
I altered it to read as I wanted it to, then clicked save.
Went to my site & ..... nothing
Site completely disappeared!
I had actually found this file myself earlier, without using the toolkit, & altered it, with the same results.
Seems like something else is calling for it using the original title of Important Links, in which case, there must be something else to edit in another file somewhere, but it doesn't come up in the search I did in the toolkit.
Anyone got any ideas, please??
Thanks in advance
######
Exactly what does that define statement look like now? It is important to keep the single quotes around the defined text.
And Yairoz, it's never too late to start using the template override system. Even if you have edited core files, if you copy the edited files to your template folders they will function correctly, and in your next upgrade when the core files are overwritten, your changes will be safe.
Last edited by gjh42; 23 Dec 2007 at 10:03 AM.
This is the file that works, default:
<?php
/**
* ezpages language components - used when displaying components for EZ-Pages content
*
* @package languageDefines
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: ez_pages_definitions.php 2739 2005-12-30 19:00:50Z birdbrain $
*/
// ez-pages sidebox title name
define('BOX_HEADING_EZPAGES','Important Links');
define('TEXT_EZ_PAGES_TABLE_CONTEXT', 'Table of Contents');
define('CURRENT_PAGE_INDICATOR', ' * ');
define('NOT_CURRENT_PAGE_INDICATOR', ' - ');
?>
This is the one that doesn't, when I change the HEADER_EZPAGES text:
<?php
/**
* ezpages language components - used when displaying components for EZ-Pages content
*
* @package languageDefines
* @copyright Copyright 2003-2005 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: ez_pages_definitions.php 2739 2005-12-30 19:00:50Z birdbrain $
*/
// ez-pages sidebox title name
define('BOX_HEADING_EZPAGES','FAQ's, Help & Projects');
define('TEXT_EZ_PAGES_TABLE_CONTEXT', 'Table of Contents');
define('CURRENT_PAGE_INDICATOR', ' * ');
define('NOT_CURRENT_PAGE_INDICAhttp://www.zen-cart.com/forum/images/smilies/dontgetit.gif
TOR', ' - ');
?>
Total balnk page results!
Really don't understand why, unless something else is calling it using the header title?
Regards
######
This is easy, and important to know for future reference.
'FAQ's, Help & Projects'
The single quote inside a single-quoted text string will be interpreted as the end of the string, and what follows will be interpreted as code. This will cause an error.
To use a quote or apostrophe here, you need to escape it with a backslash \ . So
'FAQ\'s, Help & Projects'