News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

VM 3.0.12 - navi link to category layout - browser page title cannot be changed

Started by dirkb, December 06, 2015, 19:05:15 PM

Previous topic - Next topic

dirkb

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 ?

Jumbo!

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);
}
}

dirkb


GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

FoTo50

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