我想仅在virtmart的产品详情页面中显示level2类别,但没有具体的产品详细信息页面
答案 0 :(得分:0)
您需要一个像Metamod这样的组件,并使用如下配方:
$ vm = JomGenius(“virtuemart”); //在每个规则的开头都需要这个
if($ vm-> check(“pagetype = productdetails”)){return 99; //模块ID}
如果没有Metamod,您可以使用以下内容:
if (JRequest::getVar('view')=='productdetails') {
jimport('joomla.application.module.helper');
$module = &JModuleHelper::getModule('mod_custom','Your module name');
echo JModuleHelper::renderModule($module);
}
祝你好运!