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).
Hey Chaudhry,
I used the ContentReferenceExtensions to retrieve the previous page then compare:
var previousPage = e.ContentLink.ToReferenceWithoutVersion().GetPageData();
The GetPageData is an extension that wraps the ContentRepository:
var contentRepository = ServiceLocator.Current.GetInstance<IContentRepository>(); var data = contentRepository.Get<IContentData>(reference); return data as SitePageData;
Hope this helps,
Simon
Is there a way in episerver that would let me check that when I click publich which properties are changed?
I have been able to hook into the onPublishedEvent like this
But how do I check if a particular property has changed?