如何检测DNN 9的服务器端是否启用了“编辑模式”?

时间:2018-09-25 13:28:39

标签: dotnetnuke dotnetnuke-9

如何在后端代码中检测DNN是否处于“编辑模式”?

我查看了此链接,但它似乎与客户端上的DNN7有关:http://www.dnnsoftware.com/answers/dnn7-detect-page-edit-mode-in-js

例如:

  **<con:binary-content ref="cid:-611c4fcb:12896f020b7:-7fe0"xmlns:con="http://www.bea.com/wli/sb/context"/>**

   Second Oracle support this result is correct in the case of XML2NonXML transformations, and my question is:

   What now? Who can I access the Json value of this reference? Do you know other way to do such translation?

1 个答案:

答案 0 :(得分:3)

PortalModuleBase具有IsEditable属性,在编辑模式下为true。

if(IsEditable){
 // Do Something
}