Allow for filtering of document type allowed children and allowed at root when creating new content. (#18029)

* Creates IContentTypeFilterService with a "no-op" implementation for filtering the content types available for selection at root and as children.

* Rework to collection so packages and implementors can stack filters if they need to.
This commit is contained in:
Andy Butland
2025-01-20 12:26:07 +01:00
committed by GitHub
parent ef478cf5d1
commit 171ada26cc
9 changed files with 209 additions and 19 deletions

View File

@@ -46,6 +46,7 @@ using Umbraco.Cms.Core.Telemetry;
using Umbraco.Cms.Core.Templates;
using Umbraco.Cms.Core.Web;
using Umbraco.Extensions;
using Umbraco.Cms.Core.Services.Filters;
namespace Umbraco.Cms.Core.DependencyInjection
{
@@ -444,7 +445,6 @@ namespace Umbraco.Cms.Core.DependencyInjection
// Routing
Services.AddUnique<IDocumentUrlService, DocumentUrlService>();
Services.AddNotificationAsyncHandler<UmbracoApplicationStartingNotification, DocumentUrlServiceInitializerNotificationHandler>();
}
}
}