MoisesZaragoza Posted April 28, 2006 Posted April 28, 2006 I need to change Let's see What We Have Here to the name of my category. I know that the file I need to change is includes/languages/english/index.php And I know that the line I have to change is define('HEADING_TITLE', 'Let's see What We Have Here '); but the Question is how do i get the Categories name Thanks at the end of the day the code will be good
thecodingmonkey Posted April 28, 2006 Posted April 28, 2006 I need to change Let's see What We Have Here to the name of my category. I know that the file I need to change is includes/languages/english/index.php And I know that the line I have to change is define('HEADING_TITLE', 'Let's see What We Have Here '); but the Question is how do i get the Categories name Thanks includes/classes/breadcrumb.php Original: class breadcrumb { var $_trail; function breadcrumb() { $this->reset(); } Change to: class breadcrumb { var $_trail; function last() { $trail_size = sizeof($this->_trail); return $this->_trail[$trail_size-1]['title'] ; } function breadcrumb() { $this->reset(); } Directory: includes/languages/english/index.php Around Line 19: define('HEADING_TITLE', 'Let\'s See What We Have Here'); Alter to: define('HEADING_TITLE', $breadcrumb->last()); Around Line 39: define('HEADING_TITLE', 'Categories'); Alter to: define('HEADING_TITLE', $breadcrumb->last() . ' ' . 'Categories'); Save both files and you will not get the catagory heading at the top of each catagory page instead of the standard "Let's See What We Have Here" and "Categories"
MoisesZaragoza Posted April 28, 2006 Author Posted April 28, 2006 Thanks at the end of the day the code will be good
Geotex Posted April 29, 2006 Posted April 29, 2006 Another nice little addition: In Directory: includes/languages/english/index.php approx. line 37, change define('HEADING_TITLE', 'What\'s New Here?'); to: define('HEADING_TITLE', 'Welcome to ' . STORE_NAME . '!'); giving: } elseif ($category_depth == 'top') { define('HEADING_TITLE', 'Welcome to ' . STORE_NAME . '!'); } elseif ($category_depth == 'nested') { define('HEADING_TITLE', $breadcrumb->last() . ' ' . 'Categories'); } GEOTEX from Houston, TX (George)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.