What is the difference between Sitecore.Context.PageMode.IsExperienceEditor
and Sitecore.Context.PageMode.IsExperienceEditorEditing
? I've always used Sitecore.Context.PageMode.IsExperienceEditor
in my code, but I've noticed that some frameworks such as Glass Mapper use Sitecore.Context.PageMode.IsExperienceEditorEditing
.
Sitecore.Context.PageMode.IsExperienceEditorEditing
sounds like it would only return true
when in the Experience Editor and Edit Mode is enabled, or when Editing is turned on under the view tab; however, I've found that Sitecore.Context.PageMode.IsExperienceEditorEditing
always returns the same value as Sitecore.Context.PageMode.IsExperienceEditor
.