Search for:
Sign in
Register
Menu
Articles
Questions & Answers
Download
Documentation
Support
Marketplace
Old Forums
Search:
Search text
Portal Engine
Questions on portal engine and web parts.
Version 7.x
>
Portal Engine
>
Detect ViewMode on javascript
View modes:
View mode
Threaded
Flat - newest to oldest
Flat - oldest to newest
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?
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 :)
Top