move method of Page Manager API

naveeng73207107

22-11-2017

Hi All,

I am working on moving a page from one location to an another via Page Manager API.

move(Page page, String destination, String beforeName, boolean shallow, boolean resolveConflict, String[] adjustRefs,String[] publishRefs)

In above method of page manager, how to get value for adjustRefs & publishRefs ?

Do we have any predefined function to get the pages which are refered to currentPage ?

Thanks,

Naveen

Answers (8)

Answers (8)

Veena_Vikram

MVP

22-11-2017

HI Naveen

  - Pass a String array which contains array of all the page paths that references this Page .

          For example /content/page1 needs to be moved to /content/test/page1 ; Pages /content/Page2 and /content/Page3 has a reference /content/page1 in them , then you should give an array below paths as the parameter adjustRefs

{"/content/Page2" , "/content/Page3"}

Nikash_Bahadur

Employee

05-01-2020

Does this solution work? ACS AEM Commons page reference provided provides the references of a resource of the current page. It doesn't provide the pages where the current page is referenced. I believe "move" method accepts the pages where the current page is reference.

Please do let me know if the ACS AEM Commons Page Reference provided actually works in this scenario.

naveeng73207107

22-11-2017

Hi Veena,

Thanks for your cmts but my question is how do we know that page2 and page3 has referred page1? How do we know the moved pages is refered in some pages and how we get these pages?