Sunday, 25 June 2017

65.social engine menu

in dbchanged

$sql['1.1.4.19'] = "INSERT INTO `engine4_core_menuitems` (`id`, `name`, `module`, `label`, `plugin`, `params`, `menu`, `submenu`, `enabled`, `custom`, `order`) VALUES (NULL, 'core_mini_gallery', 'user', 'Gallery', 'User_Plugin_Menus', '', 'core_mini', NULL, '1', '0', '6');";



in user/plugin/menus.php
  public function onMenuInitialize_CoreMiniGallery($row)
  { 
    $viewer = Engine_Api::_()->user()->getViewer();
    
  if( $viewer->getIdentity() ) {

      return array(
        'label' => 'Gallery',
      'icon' => 'application/modules/User/externals/images/gallery.svg',
       'route' => 'album_general',
        'params' => array(
        'module' => 'album',
          'controller' => 'index',
          'action' => 'browse',
         
        )
      );
    }
    
    return false;
  }


backend-mini navigation menu
change position of menu

No comments:

Post a Comment