VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: cufe on March 02, 2012, 22:28:36 PM

Title: Page title in VM2: Sitename - Category - Product
Post by: cufe on March 02, 2012, 22:28:36 PM
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?
Title: Re: Page title in VM2: Sitename - Category - Product
Post by: cufe on March 03, 2012, 15:28:18 PM
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));
Title: Re: Page title in VM2: Sitename - Category - Product
Post by: CE WebDesign München on December 07, 2012, 13:15:31 PM
hi, thank you very much, update for vm 2.0.14:
http://forum.virtuemart.net/index.php?topic=108776.msg371876#msg371876