News:

Looking for documentation? Take a look on our wiki

Main Menu

Mfg detail layout, SEF & JTree confusion

Started by andrewm57, May 28, 2014, 03:55:19 AM

Previous topic - Next topic

andrewm57

I wanted to use mfg links in articles, so I created a hidden 'manufacturers' menu with a Mfg Detail Layout link for each mfg. I then linked to the menu items using JTree in the articles.

http://fineleatherfurniture.com/save-on-leather-furniture

For the 'Leathercraft' link, the linked page is:

http://fineleatherfurniture.com/leathercraft/details

but it - and all mfgs link pages - is a Mfg Default layout of all mfgs, not a Mfg Details page.

If I leave those links and menu items but unpublish the menu items, I get the correct Mfg Details page, but a convoluted URL:

http://fineleatherfurniture.com/leather-furniture/manufacturers/leathercraft/details

However that looses any control over Title & Meta options.

If I munge the original SEF URL to remove the /details, I get the correct Mfg Details page:

http://fineleatherfurniture.com/leathercraft

How can I get the article links to work correctly?

J 2.5.19, VM  2.6.4

GJC Web Design

yes indeed - does appear that the standard SEF is wrong for the manufacturer links

made a hidden menu to a man detail page
/index.php?option=com_virtuemart&view=manufacturer&layout=details&virtuemart_manufacturer_id=1&Itemid=164

used that in a link in content

with SEF off works fine

with SEF on becomes   manu/details  (depending on the hidden menu title and alias of course) but leads as you say to the VirtueMart » VirtueMart Manufacturer Default Layout   

on that overview the SEF url is /manu  to the wanted manufacturer

A menu to the "VirtueMart » VirtueMart Manufacturer Default Layout"  gives   /mans  (again of course dependent on menu alias)
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

GJC Web Design

If you look in components/com_virtuemart/router.php ~ lines 600 you will see this commented out

// if (isset($helper->activeMenu->virtuemart_manufacturer_id))
// $vars['virtuemart_manufacturer_id'] = $helper->activeMenu->virtuemart_manufacturer_id ;


if I enable it

if (isset($helper->activeMenu->virtuemart_manufacturer_id))
$vars['virtuemart_manufacturer_id'] = $helper->activeMenu->virtuemart_manufacturer_id ;


my SEF urls as above work perfectly

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