예제 #1
0
 public static PigeonCms.Menu GetCurrentMenu(string  menuType)
 {
     var res = new PigeonCms.Menu();
     var menuMan = new MenuManager(true, false);
     var filter = new MenuFilter();
     filter.FilterContentType = false;
     filter.MenuType = menuType;
     filter.Alias = MenuHelper.GetCurrentAlias();
     filter.RoutePattern = MenuHelper.GetCurrentRoutePattern();
     filter.ParentId = -1;
     List<PigeonCms.Menu> list = menuMan.GetByFilter(filter, "");
     if (list.Count > 0)
     {
         res = list[0];
     }
     return res;
 }