A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
AI OnAI Off
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
You could filter in ContentType.ModelType, like:
var contentTypeRepository = ServiceLocator.Current.GetInstance<IContentTypeRepository>();
var pageTypeList = contentTypeRepository.List().Where(c => typeof(PageData).IsAssignableFrom(c.ModelType));
Hi all,
I would like to get all the available page types in episerver that are a Page Data. For that I'm doing:
The problem is when I try to check if a page is at PageData this doesn't work. The idea is to filter all those pages that are in the pageTypeList.
How I can do that?
Thank you