Warning
With the release of the Feb 2025 refresh, this functionality of this package has now been replaced with core features available directly within Xperience by Kentico. To that end, this package will no longer be supported and will instead be intended to be replaced with the core functionality.
See https://community.kentico.com/blog/xperience-by-kentico-refresh-february-20-2025#allowed-web-page-content-types-and-scopes for more information on the feature release.
To assist you with migrating your data from this plugin, I have included a script below. Note that this script is provided for general use and may need to be modified based on how your specific instance of XbyK is setup.
insert into CMS_WebPageScope (WebPageScopeWebsiteChannelID, WebPageScopeWebPageItemID, WebPageScopeIncludeChildren, WebPageScopeGUID)
select WebsiteChannelID, null, 0, newid()
from CMS_WebsiteChannel wc
left join CMS_WebPageScope wps on wc.WebsiteChannelID = wps.WebPageScopeWebsiteChannelID
where wps.WebPageScopeWebsiteChannelID is null
insert into CMS_WebPageScopeContentType (WebPageScopeContentTypeWebPageScopeID, WebPageScopeContentTypeContentTypeID)
select WebPageScopeID, ContentTypeConfigurationContentTypeId
from CMS_WebPageScope
cross join BQCTR_ContentTypeConfiguration
where ContentTypeConfigurationAllowAtRoot = 1
insert into CMS_AllowedChildContentType (AllowedChildContentTypeParentID, AllowedChildContentTypeChildID)
select distinct ctc.ContentTypeConfigurationContentTypeId, ctat.ContentTypeAllowedTypeContentTypeId
from BQCTR_ContentTypeAllowedType ctat
inner join BQCTR_ContentTypeConfiguration ctc on ctat.ContentTypeAllowedTypeContentTypeConfigurationId = ctc.ContentTypeConfigurationIdThis package provides Xperience by Kentico administrators with an interface to restrict allowed content types within the content trees of a website channel. This package is intended to reduce allow control over what content types are available in order to guide editors towards the correct options when structuring site content.
| Xperience Version | Library Version |
|---|---|
| >= 29.5.3 | 1.0.0 |
Add the package to your application using the .NET CLI
dotnet add package XperienceCommunity.ContentTypeRestrictions
or via the Package Manager
Install-Package XperienceCommunity.ContentTypeRestrictions
-
Install the NuGet package.
-
Update your Program.cs to register the necessary services.
using XperienceCommunity.ContentTypeRestrictions;
...
builder.Services.AddContentTypeRestrictionsExtensionServices();-
Start your Xperience by Kentico website.
-
Log in to the administration site.
-
Edit a content type.
-
Select whether the content type is allowed at the root level and what child types are allowed under this content type.

-
When creating a new page in the website channel, the available content types will be restricted to only the specified allowed types.
