protected void Page_Load(object sender, EventArgs e) { // Get current tag ID mTagId = QueryHelper.GetInteger("tagid", 0); TagInfo ti = TagInfoProvider.GetTagInfo(mTagId); EditedObject = ti; if (ti != null) { int groupId = QueryHelper.GetInteger("groupid", 0); int siteId = QueryHelper.GetInteger("siteid", 0); string[,] pageTitleTabs = new string[2, 3]; pageTitleTabs[0, 0] = GetString("taggroup_edit.itemlistlink"); pageTitleTabs[0, 1] = "~/CMSModules/TagGroups/Pages/Development/TagGroup_Edit_Tags.aspx?groupid=" + groupId + "&siteid=" + siteId; pageTitleTabs[0, 2] = "groupContent"; pageTitleTabs[1, 0] = ti.TagName; pageTitleTabs[1, 1] = string.Empty; pageTitleTabs[1, 2] = string.Empty; CurrentMaster.Title.Breadcrumbs = pageTitleTabs; docElem.SiteName = filterDocuments.SelectedSite; docElem.UniGrid.OnBeforeDataReload += new OnBeforeDataReload(UniGrid_OnBeforeDataReload); docElem.UniGrid.OnAfterDataReload += new OnAfterDataReload(UniGrid_OnAfterDataReload); } }
protected void Page_Load(object sender, EventArgs e) { // Get current tag ID mTagId = QueryHelper.GetInteger("tagid", 0); TagInfo ti = TagInfoProvider.GetTagInfo(mTagId); EditedObject = ti; if (ti != null) { int groupId = QueryHelper.GetInteger("groupid", 0); int siteId = QueryHelper.GetInteger("siteid", 0); UIElementInfo ui = UIElementInfoProvider.GetUIElementInfo("CMS.Taxonomy", "tags"); String url = String.Empty; if (ui != null) { url = UIContextHelper.GetElementUrl(ui, UIContext); url += String.Format("&parentobjectid={0}&tagid={1}&siteid={2}&displaytitle={3}", groupId, mTagId, siteId, QueryHelper.GetBoolean("displaytitle", false)); } PageBreadcrumbs.Items.Add(new BreadcrumbItem() { Text = GetString("taggroup_edit.itemlistlink"), RedirectUrl = url }); PageBreadcrumbs.Items.Add(new BreadcrumbItem() { Text = ti.TagName }); docElem.SiteName = filterDocuments.SelectedSite; docElem.UniGrid.OnBeforeDataReload += new OnBeforeDataReload(UniGrid_OnBeforeDataReload); docElem.UniGrid.OnAfterDataReload += new OnAfterDataReload(UniGrid_OnAfterDataReload); } }