public void InitFromQueryString() { // Get format definition from URL string output = QueryHelper.GetString("output", "html"); bool link = QueryHelper.GetBoolean("link", false); OutputFormat = CMSDialogHelper.GetOutputFormat(output, link); if (OutputFormat == OutputFormatEnum.Custom) { CustomOutputFormat = output; } // Get selectable content string content = QueryHelper.GetString("content", "all"); SelectableContent = CMSDialogHelper.GetSelectableContent(content); // Get user dialog configuration XmlData userConfig = MembershipContext.AuthenticatedUser.UserSettings.UserDialogsConfiguration; // Get selected tab from URL SelectedTab = QueryHelper.GetString("tab", (string)userConfig["selectedtab"]); // Get hidden tabs from URL bool hasFormGuid = (QueryHelper.GetGuid("formguid", Guid.Empty) != Guid.Empty); bool hasDocumentId = (QueryHelper.GetInteger("documentid", 0) > 0); bool hasParentId = (QueryHelper.GetInteger("parentid", 0) > 0); HideAttachments = QueryHelper.GetBoolean("attachments_hide", false) || !((hasFormGuid && hasParentId) || hasDocumentId || HasMetaFileObjectInfo); HideContent = QueryHelper.GetBoolean("content_hide", false); if (!HideContent) { // Check site availability if (!ResourceSiteInfoProvider.IsResourceOnSite("CMS.Content", SiteContext.CurrentSiteName)) { HideContent = true; } } HideMediaLibraries = QueryHelper.GetBoolean("libraries_hide", false); if (!HideMediaLibraries) { // Check site availability if (!ResourceSiteInfoProvider.IsResourceOnSite("CMS.MediaLibrary", SiteContext.CurrentSiteName)) { HideMediaLibraries = true; } } HideWeb = QueryHelper.GetBoolean("web_hide", false); HideAnchor = QueryHelper.GetBoolean("anchor_hide", false); HideEmail = QueryHelper.GetBoolean("email_hide", false); }