Friday, July 8, 2016

How to populate the current page path to the dialog through EXT JS - Adobe Experience Manager(AEM) 6.1

This post will explain, how to populate the current page path to the dialog through EXT JS - Adobe Experience Manager(AEM ) 6.1

Add the listener for the widget and use the below script.

function(widget) {
        var currentPath;
if(CQ.wcm.SiteAdmin.hasListSelection()) {
        var grid = CQ.wcm.SiteAdmin.getActiveGrid();
        var selections = grid.getSelectionModel().getSelections();
currentPath = selections[0].id;
console.log(currentPath);
widget.setValue(currentPath)
}
}







3 comments:

  1. Many web developers do now know how they should populate the current page in their personal project.But it is essential for the betterment of the web development.The proper use of the procedure ould help the developers to get the rachelledawson.com which will let the people know about their benefits.Would you please explain more details about the tips o how to populate th current page?

    ReplyDelete
  2. Now I feel too stupid, honestly. No matter who it could be, I'll never understand any explanation. It was only one time, when I understood everything clearly, it was time, when team of this web site wrote an article for my friend and I understood everything they said. Isn't it a miracle?

    ReplyDelete