Craig100
SiempreSteve
Blake Watt (Clerke)
Steffen Nielsen
sandervandepas_33359
skttl
cs using Umbraco.Cms.Core; using Umbraco.Cms.Core.DynamicRoot.QuerySteps; using Umbraco.Cms.Core.Extensions; using Umbraco.Cms.Core.Services; namespace Website.Core.DynamicRoot; public class GlobalDataNodeDynamicRootQueryStep : IDynamicRootQueryStep { private readonly IContentService _contentService; public GlobalDataNodeDynamicRootQueryStep(IContentService contentService) { _contentService = contentService; } protected virtual string SupportedDirectionAlias { get; set; } = "GlobalDataNode"; public async Task<Attempt<ICollection<Guid>>> ExecuteAsync(ICollection<Guid> origins, DynamicRootQueryStep filter) { await Task.Run(() => { }); if (filter.Alias != SupportedDirectionAlias) { return Attempt<ICollection<Guid>>.Fail(); } if (origins.Count < 1) { return Attempt<ICollection<Guid>>.Succeed(Array.Empty<Guid>()); } var globalDataNode = _contentService.GetRootContent().FirstOrDefault(x => x.ContentType.Alias == ContentModels.GlobalDataNode.ModelTypeAlias); if (globalDataNode == null) { return Attempt<ICollection<Guid>>.Succeed(Array.Empty<Guid>()); } return Attempt<ICollection<Guid>>.Succeed(globalDataNode.Key.ToSingleItemCollection()); } }
Dean Leigh
Error during installation The database failed to upgrade. ERROR: The database configuration failed with the following message: The migration plan does not support migrating from state "{83AF7945-DADE-4A02-9041-F3F6EBFAC319}".
TECKSPEED
Home -> Products -> [Node Currently Resides]
Home -> Products -> Product Category -> [Node should reside]
TigerMan
Bishal Tim
A hub and casual space for you to interact with fellow community members and learn more about Umbraco!