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.
Views
Replies
Total Likes
Please use below code:- <% pageContext.setAttribute("runModes", sling.getService(SlingSettingsService.class).getRunModes().toString()); %>
Here is a community code example:
Please use below code:- <% pageContext.setAttribute("runModes", sling.getService(SlingSettingsService.class).getRunModes().toString()); %>
Views
Likes
Replies