protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     TopStudioPanel = (TopStudioPanel)LoadControl(TopStudioPanel.Location);
     MetaKeywords.Content = Resources.Resource.MetaKeywords;
     MetaDescription.Content = Resources.Resource.MetaDescription;
 }
Esempio n. 2
0
        public static void AdjustTopNavigator(TopStudioPanel topNavPanel, PersonalPart part, Guid currentItem)
        {
            topNavPanel.DisableProductNavigation = true;
            topNavPanel.DisableSearch = true;
            topNavPanel.DisableUserInfo = true;
            topNavPanel.DisableVideo = true;

            //items
            //foreach (var itemId in PersonalItems)
            //{
            //    var webItem = WebItemManager.Instance[itemId];
            //topNavPanel.NavigationItems.Add(
            //    new NavigationItem
            //        {
            //            Name = webItem.Name,
            //            URL = VirtualPathUtility.ToAbsolute(webItem.StartURL),
            //            Selected = currentItem.Equals(webItem.ID) || (part == PersonalPart.Default && isFirst)
            //        });
            //}

            ////backup
            //topNavPanel.NavigationItems.Add(
            //    new NavigationItem
            //        {
            //            Name = Resources.Resource.Backup,
            //            URL = GetPartUrl(PersonalPart.Backup),
            //            Selected = (part == PersonalPart.Backup),
            //            RightAlign = true
            //        });

            ////settings
            //topNavPanel.NavigationItems.Add(
            //    new NavigationItem
            //        {
            //            Name = Resources.Resource.Administration,
            //            URL = GetPartUrl(PersonalPart.Settings),
            //            Selected = (part == PersonalPart.Settings),
            //            RightAlign = true
            //        });

            ////profile
            //topNavPanel.NavigationItems.Add(
            //    new NavigationItem
            //        {
            //            Name = Resources.Resource.Profile,
            //            URL = GetPartUrl(PersonalPart.Profile),
            //            Selected = (part == PersonalPart.Profile),
            //            RightAlign = true
            //        });
        }
 protected override void OnInit(EventArgs e)
 {
     base.OnInit(e);
     TopStudioPanel = (TopStudioPanel)LoadControl(TopStudioPanel.Location);
 }
Esempio n. 4
0
 public static void AdjustTopNavigator(TopStudioPanel topNavPanel, PersonalPart part)
 {
     AdjustTopNavigator(topNavPanel, part, Guid.Empty);
 }