JSPT Docs > Tips and Tricks > Hide Sub Menus of JS Toolbar

Hide Sub Menus of JS Toolbar

If you want to hide Sub Menus instead of Menu then simply go through these steps:

Trick for JSPT3.4 Version

  1. Go to JOOMLA_ROOT >> Administrator >> Components >> com_xipt >> views >> jstoolbar >> view.html.php file.
    1. Find following code at line no. 16: 
      $fields        = $jsModel->getMenu(null, $pagination->limit, $pagination->limitstart);
    2. Replace it by:
      $fields        = $jsModel->getMenu(null, $pagination->limit, $pagination->limitstart, false);
    3. Find following code at line no. 27:
      $fields    = $this->getModel()->getMenu();
    4. Replace it by:
      $fields    = $this->getModel()->getMenu(null,null,null,false);
  2. Go to JOOMLA_ROOT >> Components >> com_xipt >> helpers >> jstoolbar.php file.
    1. Find following code at line no. 86:
      $result   = $jsmodel->getMenu($menuid);
    2. Replace it by:
      $result   = $jsmodel->getMenu($menuid,null,null,false);
  3. Go to JOOMLA_ROOT >> Components >> com_xipt >> models >> jstoolbar.php.
    1. Find following code at line no. 70:
      $menus   = $this->getMenu();
    2. Replace it by:
      $menus   = $this->getMenu(null,null,null,false);

Trick for Lower Version of JSPT3.4

  1. Go to JOOMLA_ROOT >> Components >> com_xipt >> models >> jstoolbar.php.
  2. Find following code
    1. For Joomla!1.5 at line no. 22:
      $result = $query->select('*') ->from('#__menu') ->where(" `menutype` = 'jomsocial' and `parent` = 0")
    2. For Joomla!1.7 at line no. 33:
      $result = $query->select('*') ->from('#__menu') ->where(" `menutype` = 'jomsocial' and `parent_id` = 1")
  3. Replace by:
    1. For Joomla!1.5 at line no. 22:
      $result = $query->select('*') ->from('#__menu') ->where(" `menutype` = 'jomsocial'")
    2. For Joomla!1.7 at line no. 33:
      $result = $query->select('*') ->from('#__menu') ->where(" `menutype` = 'jomsocial'")


  • Monday, 21 November 2011

Comments (0)

Leave a comment

You are commenting as guest.