Joomla 3.4.5 / VM 3.0.12
I have a menu link called "shop" linking to VM category layout.
If I go into the menu manager -> menu edit item -> page display -> browser page title
... it´s not changing the browser page title. Tried all the other menu entries, to frontpage and non-vm links, it works there, but not with "category layout"
anybody ideas ?
You easily fix that in your template's HTML override.
Example:
Open - templates/your_template/html/com_virtuemart/category/default.php
Find the following codes around the top:
defined ('_JEXEC') or die('Restricted access');
Replace above by:
defined ('_JEXEC') or die('Restricted access');
$doc = JFactory::getDocument();
$app = JFactory::getApplication();
$menus = $app->getMenu();
$menu = $menus->getActive();
if(!empty($menus))
{
$page_title = $menu->params->get('page_title');
if(!empty($page_title))
{
$doc->setTitle($page_title);
}
}
Hey Jumbo ... fix works. Perfect. Thank you.
Should be in the core I guess...
I agree to GJC, suggest to change ./views/category/view.html.php on line 308 from if ($menu) $title = $menu->title;
to if ($menu) $title = $menu->params->get('page_title');
in one of the next versions and everything works from core as expected :)
Greetz