November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
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