display module only on the front page of virtuemart joomla 2.5 -


hi want display module on front page of virtuemart , dont want module on inner pages. have search this, did not anything.

i tried used code not effect.

  <?php if (jrequest::getvar('view')=='productdetails') { ?>   <div id="productmod"><jdoc:include type="modules" name="productdetails" /></div>   <?php } ?> 

can me figureout problem

thanks in advance..

take on answer, , var_dump $menulist menus, specific menu , apply condition..

// default menu - jmenu object, @ jmenu api docs $menu = jfactory::getapplication()->getmenu();  // menu items - array menu items $menulist = $menu->getmenu();  // through menu structure, once understand // loop , find link need. var_dump($menulist); 

take on give link how determine front or default page


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -