AEM 6.1 | Disable tab in AEM dialog

Avatar

Avatar

CQ_learner

Avatar

CQ_learner

CQ_learner

01-07-2016

Hi All,

How Can i disable a tab in author dialog based on the current page template? I know i need to use a listener, can someone please tell me how to use it?

View Entire Topic

Avatar

Avatar

CQ_learner

Avatar

CQ_learner

CQ_learner

06-07-2016

Hi All,

Below function worked for me, thanks for your replies

function(dialog){
        var pagePath = CQ.utils.WCM.getPagePath()+"/jcr:content.json";
        var result = CQ.shared.HTTP.eval(pagePath);   
        var currentTemplate = result['cq:template'];
    }