Esempio n. 1
0
        protected override void PageLoad()
        {
            ServiceHelper.DisplayMode = BookmarkingServiceHelper.BookmarkDisplayMode.BookmarksCreatedByUser;

            var pageTitle = ServiceHelper.GetUserNameByRequestParam();

            var c = LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath);


            container.Body.Controls.Add(c);

            container.Header.Controls.Add(new Label()
            {
                Text = pageTitle
            });

            InitBreadcrumbs(pageTitle);

            Title = HeaderStringHelper.GetPageTitle(pageTitle, container.BreadCrumbs);


            //Actions and Navigation
            BookmarkingNavigationUtil.SetBookmarkingActionsAndNavigation(BookmarkingSideHolder.Controls);
            BookmarkingNavigationUtil.SetPopularTagsCloud(BookmarkingSideHolder.Controls);

            sideRecentActivity.TenantId  = TenantProvider.CurrentTenantID;
            sideRecentActivity.ProductId = Product.CommunityProduct.ID;
            sideRecentActivity.ModuleId  = BookmarkingSettings.ModuleId;
        }
Esempio n. 2
0
        protected override void PageLoad()
        {
            InitTags();
            var pageTitle = BookmarkingResource.TagPageTitle;

            InitBreadcrumbs(pageTitle);
            Title = HeaderStringHelper.GetPageTitle(pageTitle, container.BreadCrumbs);

            //Actions and Navigation
            BookmarkingNavigationUtil.SetBookmarkingActionsAndNavigation(BookmarkingSideHolder.Controls);

            BookmarkingNavigationUtil.SetPopularTagsCloud(BookmarkingSideHolder.Controls);

            sideRecentActivity.TenantId  = TenantProvider.CurrentTenantID;
            sideRecentActivity.ProductId = Product.CommunityProduct.ID;
            sideRecentActivity.ModuleId  = BookmarkingSettings.ModuleId;
        }
Esempio n. 3
0
        protected override void PageLoad()
        {
            ServiceHelper.DisplayMode = BookmarkingServiceHelper.BookmarkDisplayMode.Favourites;

            var c = LoadControl(BookmarkUserControlPath.BookmarkingUserControlPath);

            var pageTitle = BookmarkingResource.FavouritesNavigationItem;

            container.Body.Controls.Add(c);

            InitBreadcrumbs(pageTitle);
            Title = HeaderStringHelper.GetPageTitle(pageTitle, container.BreadCrumbs);

            //Actions and Navigation
            BookmarkingNavigationUtil.SetBookmarkingActionsAndNavigation(BookmarkingSideHolder.Controls);
            BookmarkingNavigationUtil.SetFavouriteTagsCloud(BookmarkingSideHolder.Controls);

            sideRecentActivity.TenantId  = TenantProvider.CurrentTenantID;
            sideRecentActivity.ProductId = Product.CommunityProduct.ID;
            sideRecentActivity.ModuleId  = BookmarkingSettings.ModuleId;
        }
        protected override void PageLoad()
        {
            if (!BookmarkingPermissionsCheck.PermissionCheckCreateBookmark())
            {
                Response.Redirect(BookmarkingRequestConstants.BookmarkingPageName);
            }

            ServiceHelper.DisplayMode = BookmarkingServiceHelper.BookmarkDisplayMode.CreateBookmark;


            var c = LoadControl(BookmarkUserControlPath.CreateBookmarkUserControlPath) as CreateBookmarkUserControl;

            c.IsNewBookmark = true;
            container.Body.Controls.Add(c);

            var url = Request.QueryString[BookmarkingRequestConstants.UrlGetRequest];
            var s   = string.Empty;

            if (!string.IsNullOrEmpty(url))
            {
                s = string.Format(" getBookmarkUrlInput().val(\"{0}\"); getBookmarkByUrlButtonClick(); ", url);
            }

            string script = string.Format("jq(document).ready(function() {{ showAddBookmarkPanel(); {0} }} )", s);

            Page.ClientScript.RegisterClientScriptBlock(typeof(string), "createBookmarkScript", script, true);

            Title = HeaderStringHelper.GetPageTitle(BookmarkingResource.AddBookmarkLink, container.BreadCrumbs);
            InitBreadcrumbs(BookmarkingResource.AddBookmarkLink);

            //Actions and Navigation
            BookmarkingNavigationUtil.SetBookmarkingActionsAndNavigation(BookmarkingSideHolder.Controls);
            BookmarkingNavigationUtil.SetPopularTagsCloud(BookmarkingSideHolder.Controls);

            sideRecentActivity.TenantId  = TenantProvider.CurrentTenantID;
            sideRecentActivity.ProductId = Product.CommunityProduct.ID;
            sideRecentActivity.ModuleId  = BookmarkingSettings.ModuleId;
        }