2

How can I detect if DNN is in Edit Mode in the Back-End code?

I looked at this link, but it seems to deal with DNN7 on the Client-Side: http://www.dnnsoftware.com/answers/dnn7-detect-page-edit-mode-in-js

For example:

if(DotNetNuke.EditMode == true){
// Do Something
}
VDWWD
  • 35,079
  • 22
  • 62
  • 79
Tig7r
  • 525
  • 1
  • 4
  • 21

1 Answers1

4

PortalModuleBase has an IsEditable property that is true when in Edit Mode.

if(IsEditable){
 // Do Something
}
Brad Bamford
  • 3,783
  • 3
  • 22
  • 30