private void CultureSite_InsertDelete_After(object sender, ObjectEventArgs e) { CultureSiteInfo CultureSite = (CultureSiteInfo)e.Object; string SiteName = DynamicRouteHelper.GetSite(CultureSite.SiteID).SiteName; DynamicRouteEventHelper.SiteLanguageChanged(SiteName); }
public string Execute(TaskInfo task) { string Result = ""; switch (task.TaskName.ToLower()) { case "checkurlslugqueue": DynamicRouteHelper.CheckUrlSlugGenerationQueue(); break; } return(Result); }
private void SettingsKey_InsertUpdate_After(object sender, ObjectEventArgs e) { SettingsKeyInfo Key = (SettingsKeyInfo)e.Object; switch (Key.KeyName.ToLower()) { case "cmsdefaultculturecode": if (Key.SiteID > 0) { string SiteName = DynamicRouteHelper.GetSite(Key.SiteID).SiteName; DynamicRouteEventHelper.SiteDefaultLanguageChanged(SiteName); } else { foreach (string SiteName in SiteInfoProvider.GetSites().Select(x => x.SiteName)) { DynamicRouteEventHelper.SiteDefaultLanguageChanged(SiteName); } } break; case "generateculturevariationurlslugs": if (Key.SiteID > 0) { string SiteName = DynamicRouteHelper.GetSite(Key.SiteID).SiteName; DynamicRouteEventHelper.CultureVariationSettingsChanged(SiteName); } else { foreach (string SiteName in SiteInfoProvider.GetSites().Select(x => x.SiteName)) { DynamicRouteEventHelper.CultureVariationSettingsChanged(SiteName); } } break; } }
private void Document_Sort_After(object sender, DocumentSortEventArgs e) { // Check parent which will see if Children need update DynamicRouteHelper.RebuildRoutesByNode(e.ParentNodeId); }