Saturday, July 9, 2016

How to populate the current page path to the dialog through EXT JS - AEM 6.1

This post will explain, how to populate the current page path to the dialog through EXT JS - 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. It's very important that we know how to populate our current page and how to navigate the page properly. Unlike the other dialog codes from Essayedge.com reviews which are not clear and understandable at all.

    ReplyDelete
  2. 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
  3. 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

Contact Form

Name

Email *

Message *