AI OnAI Off
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?