It's located in Mage_Catalog_Block_Breadcrumbs
.
This isn't the most obvious location but kind of makes sense as the breadcrumbs are displayed in a similar manner.
Add the following code in your head.phtml
if (Mage::registry(current_category)) {
echo '<title> Categoryname- keyword1 keyword2 keyword3"';
}
EDIT
As far as I know Mage::registry('current_category')
can be used to check whether we are in a category. See Alanstorm's Answer. The important parts of that answer is adding below for reference
Current versions of Magento register certain global variables (not PHP globals, but things global to the Magento system) on certain pages.
Calling the following
$category = Mage::registry('current_category');
$product = Mage::registry('current_product');
$product = Mage::registry('product');
will either return null if the objects haven't been set (i.e. you're on a page without a category or a product), or return category and product objects.
If a product object is returned you're on a product page.
If no product object is returned but a category object is, you're on a category page.
then you can print what you want.
Best Answer
Below is the script to import the CSV of category:
Save file in the root path and run it via SSH. CSV format must be as below :