Determine runmode in Adobe CQ

后端 未结 7 969
渐次进展
渐次进展 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:15

    You can also try this:

    RunModeService runModeService = getSlingScriptHelper().getService(RunModeService.class);
    author = runModeService.isActive("author");
    

提交回复
热议问题