Determine runmode in Adobe CQ

后端 未结 7 913
渐次进展
渐次进展 2021-01-02 00:44

How do I programmatically know which run-mode the instance is running? I created a custom tag that provides the config depending on the instance run-mode, but I can not dete

相关标签:
7条回答
  • 2021-01-02 01:33

    If you're using Sightly and working with a class that extends WCMUsePojo

    slingSettings =this.getSlingScriptHelper().getService(SlingSettingsService.class);
        Set<String> runmodes = slingSettings.getRunModes();
    
    0 讨论(0)
提交回复
热议问题