Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Opening specific template pages in editor.html AEM 6.1, AEM 6.2


Community Advisor

Recently in our project we have requirement to open few pages which are created using specific template in editor.html while other in cf#. Since we are in AEM 6.2 and started creating components in touch ui but most of them are still in classic. AEM has configuration to set to open pages in editor.html or User can set the preference to open in editor.html but cannot open the page in editor.html based on template.

Steps to open a page created using specific template in editor.html

1) Overlay the below js file from libs to apps


     Copy from: \libs\cq\ui\widgets\source\widgets\wcm\SiteAdmin.Actions.js

     Copy to: \apps\cq\ui\widgets\source\widgets\wcm\SiteAdmin.Actions.js

2) In function CQ.wcm.SiteAdmin.openPage include below else if

    else if (typeof selection != 'undefined' && typeof != 'undefined'

    && typeof != 'undefined' &&

    &&"Give your template path") > -1) {

    var url = CQ.HTTP.externalize("/editor.html"+path+".html");

        if (CQ.wcm.SiteAdmin.multiWinMode == undefined) {

            var wm = CQ.User.getCurrentUser().getPreference("winMode");

            CQ.wcm.SiteAdmin.multiWinMode = (wm != "single");


    if (newWindow || CQ.wcm.SiteAdmin.multiWinMode) {


        } else {




Note: Above code will open the page in editor.html only from siteadmin console when double click.

0 Replies