News:

Support the VirtueMart project and become a member

Main Menu

Page title in VM2: Sitename - Category - Product

Started by cufe, March 02, 2012, 22:28:36 PM

Previous topic - Next topic

cufe

How do I insert a page title before the category name. In the global settings I have set ... The title of the web page header: before
I have this code: <title> sitename - Category</ title>
and product <title> sitename - Category - Product</ title>
How do I do?

Now only shows:
for category: <title>category</title>
for product: <title>category : product</title>
I think it's bad, what do you think?

cufe

I have solution (hack):
path to file: components/com_virtuemart/views/productdetails/view.html.php

change code - line #193
$document->setTitle( strip_tags(($category->category_name?($category->category_name.' - '):'').$product->product_name));
to
$document->setTitle(JFactory::getApplication()->getCfg('sitename').' - '.strip_tags(($category->category_name?($category->category_name.' - '):'').$product->product_name));

CE WebDesign München

CE WebDesign München: https://ce-webdesign.de | Websites, eCommerce WebShops | Responsive Design | SEO