AEM6.4 Classic UI damadmin Issue

Avatar

Avatar

Akanksha_Pratih

Avatar

Akanksha_Pratih

Akanksha_Pratih

14-09-2018

In AEM6.4 on classic ui damadmin console if we move any image which is present in a child folder, the image is moved properly but the page refreshes and points to topmost folder in DAM. In actual, after the page refresh  the control should remain in the same folder where the move was performed.


Inputs plz

Replies

Highlighted

Avatar

Avatar

pradeepn6086740

Avatar

pradeepn6086740

pradeepn6086740

16-10-2018

Hi All,

If anyone looking for a fix for this. Please update "loadPath:" function in your "/libs/cq/ui/widgets/source/widgets/wcm/SiteAdmin.js" with the below code by overlaying this js.

var admin = this;

if (!isRecCall) {

  admin.isFirstLoad = true;

}

var callback = function(success, node, selectRecord) {

   if (Boolean(admin.isFirstLoad)) {

   if (success) {

  admin.isFirstLoad = false;

   this.loadPages(node, selectRecord);

  node.expand();

  } else {

   // path not found => load parent
   this.loadPath(

   this.treePath.substring(0, this.treePath.lastIndexOf("/")),

   this.treePath,

   true);

  }

  }

};

Thanks,

Pradeep

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

16-10-2018

Excellent post - thank you!