Contributions
Replace default page heading
I wrote this to replace the words "Let's see what we have here" with something more meaningful.
| Linda Vanderbaan | 4 Nov 2002 |
This would be version 1.0. It only works if you have breadcrumb.php, and has only been
tested with 2.2-CVS, an early Sept. snapshot.
I wrote this to replace the words "Let's see what we have here" with something more
meaningful. I found a similar contribution, but it didn't do what I wanted.
In catalog/include/classes/breadcrumb.php add the following subroutine
function last() { $trail_size = sizeof($this->_trail); return
$this->_trail[$trail_size-1]['title']; }
Then, in catalog/default.php (back it up first!), change the first 2 occurrences of HEADING_TITLE to
$breadcrumb->last().
This will put the category or manufacturer name as the visible title to the page.
Note: Contributions are used at own risk.
