private static SiteConfiguration CreateSiteConfiguration(SiteDefinition siteConfiguration) { var title = siteConfiguration.Item[Multisite.Templates.SiteConfiguration.Fields.Title]; if (string.IsNullOrEmpty(title)) { title = siteConfiguration.Name; } return new SiteConfiguration { HostName = siteConfiguration.HostName, Name = siteConfiguration.Name, Title = title, ShowInMenu = siteConfiguration.Item.Fields[Multisite.Templates.SiteConfiguration.Fields.ShowInMenu].IsChecked(), IsCurrent = siteConfiguration.IsCurrent }; }
private bool IsValidSiteConfiguration(SiteDefinition siteDefinition) { return siteDefinition.Item != null && this.IsSiteConfigurationItem(siteDefinition.Item); }