Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Detect ViewMode on javascript View modes: 
User avatar
Member
Member
gianglt3-fsoft.com - 11/5/2013 12:38:23 AM
   
Detect ViewMode on javascript
How detect current page is staying CMSDesk or Livesite on javascript file?

I thinking i can check by URL but i want to ask question to get a the best solution!

Please help me?

User avatar
Member
Member
eagleag - 11/5/2013 1:56:26 AM
   
RE:Detect ViewMode on javascript
I think easiest way would be to add this code to master page:

var currentViewMode =  <%=  CMSContext.ViewMode %>;


That way you can call teh js var "currentViewMode"


Good luck :)