public List <PageDefaultsInfo> GetAll() { List <SelectListItem> layoutOptions = _getLayoutOptions.Get(); return((from key in MrCMSApp.AppWebpages.Keys.OrderBy(type => type.FullName) select new PageDefaultsInfo { DisplayName = GetDisplayName(key), TypeName = key.FullName, GeneratorDisplayName = Settings.GetGeneratorType(key).Name.BreakUpString(), LayoutName = GetLayoutName(layoutOptions, key) }).ToList()); }
public List <PageDefaultsInfo> GetAll() { var layoutOptions = _getLayoutOptions.Get(); var settings = _configurationProvider.GetSiteSettings <PageDefaultsSettings>(); return((from key in MaterialCMSApp.AppWebpages.Keys.OrderBy(type => type.FullName) select new PageDefaultsInfo { DisplayName = GetDisplayName(key), TypeName = key.FullName, GeneratorDisplayName = settings.GetGeneratorType(key).Name.BreakUpString(), LayoutName = GetLayoutName(layoutOptions, key) }).ToList()); }
public List <PageDefaultsInfo> GetAll() { var layoutOptions = _getLayoutOptions.Get(); var settings = _configurationProvider.GetSiteSettings <PageDefaultsSettings>(); return((from key in MrCMSApp.AppWebpages.Keys.OrderBy(type => type.FullName) select new PageDefaultsInfo { DisplayName = GetDisplayName(key), TypeName = key.FullName, GeneratorDisplayName = settings.GetGeneratorType(key).Name.BreakUpString(), LayoutName = GetLayoutName(layoutOptions, key), CacheEnabled = key.GetCustomAttribute <WebpageOutputCacheableAttribute>(false) == null ? CacheEnabledStatus.Unavailable : settings.CacheDisabled(key) ? CacheEnabledStatus.Disabled : CacheEnabledStatus.Enabled }).ToList()); }