diff --git a/resources/inc/class.resources_hooks.inc.php b/resources/inc/class.resources_hooks.inc.php index c10a0d9d71..56516e7d2b 100644 --- a/resources/inc/class.resources_hooks.inc.php +++ b/resources/inc/class.resources_hooks.inc.php @@ -26,6 +26,15 @@ class resources_hooks if ($location == 'sidebox_menu') { + // Magic etemplate2 favorites menu (from nextmatch widget) + display_sidebox($appname,lang('Favorites'),array( + array( + 'no_lang' => true, + 'text'=> egw_framework::favorite_list($appname,'resources.resources_ui.get_rows'), + 'link'=>false, + 'icon' => false + ) + )); $title = $GLOBALS['egw_info']['apps']['resources']['title'].' '.lang('Menu'); $file = array( 'Resources list' => egw::link('/index.php',array('menuaction' => 'resources.resources_ui.index' )), diff --git a/resources/inc/class.resources_ui.inc.php b/resources/inc/class.resources_ui.inc.php index ae267e6ad4..4bbedf0399 100755 --- a/resources/inc/class.resources_ui.inc.php +++ b/resources/inc/class.resources_ui.inc.php @@ -117,6 +117,7 @@ class resources_ui $content['nm']['sort'] = 'ASC'; $content['nm']['store_state'] = 'get_rows'; $content['nm']['row_id'] = 'res_id'; + $content['nm']['favorites'] = true; $nm_session_data = $GLOBALS['egw']->session->appsession('session_data','resources_index_nm'); if($nm_session_data)