Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
Hi,
How we can know current run mode of AEM instace i.e. Author or Publisher
Similar to getting WCMMode using WCMMode.fromRequest(request)
Thanks
LM
Solved! Go to Solution.
Please use below code:- <% pageContext.setAttribute("runModes", sling.getService(SlingSettingsService.class).getRunModes().toString()); %>
View solution in original post
Here is a community code example:
http://wemcode.wemblog.com/check-run-mode
Views
Likes
Replies