Adds a "secondary title" input field in Admin->Catalog->Categories->Insert/Edit
Adds the "secondary title" to the category page title (ie. front-end)
Why would you want this:
So you can have a longer page title, but keep the actual category name short
Another way to add extra keywords to help with SEO
The outcome:
Before - Category Name
After - Category Name :: Secondary Title
I extended my product page tiles using Q's code in another thread:
I wanted to do this for my categories as well, so I could have a longer page title, but keep the actual category names short. It's not as easy as doing it for the product pages, although Chones/Craig did come up with a simply solution elsewhere, but this used the keyword field, and I wasn't quite ready to let it goQphoria wrote:the product controller has
that is what gives it the name. You could use an existing product field that you don't need like "location" and use that as your title field. Then globally change all controllers to:Code: Select all
$this->document->title = $product_info['name'];
Code: Select all
$this->document->title = ($product_info['name'] . ' :: ' . $product_info['location']) ;

So, here it is as a vQmod in case anyone else is interested.
You will also need to run this SQL in your database:
Code: Select all
ALTER TABLE `category_description`
ADD `title` VARCHAR( 255 ) NOT NULL