Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
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?