Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
var contentRepository = ServiceLocation.ServiceLocator.Current.GetInstance<IContentRepository>();
var page = contentRepository.Get(someReference);
IContentTypeRepository contentTypeRepository = Locate.ContentTypeRepository();
var contentType = contentTypeRepository.Load(page.ContentTypeID);
var guid = contentType.Guid;
How can I do a check to see if a page (pagedata) are is a pagetype with the by comparing the guid?
I know what guid the pagetype has, but how can I check that field by code if I have a PageData reference?