Remove references from recycled or Archived pages | Community
Skip to main content
akhilraj
Level 5
Aug 19, 2022 12:53 PM UTC
Solved

Remove references from recycled or Archived pages

Hi,

We have pages available under recycle and archive folders which are present only in Author.

Whenever user is deleting a page, it is actually going and saving under recycle folder for future reference if needed.

But when someone try to get reference of a proper page, the pages under recycle also showing up because those pages have some reference of the selected page as link mostly.

Is there a way we can hide the recycle pages not to show as referenced page in AEM or is it only possible by removing links manually from recycled pages ?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sachin_Arora_
Sachin_Arora_Accepted solution
New Participant
Aug 22, 2022 5:47 AM UTC

@akhilraj that would require debugging the existing flow. I can share the path of components being used in side rail : /libs/wcm/core/components/coral/references

4 replies

Sachin_Arora_
New Participant
Aug 22, 2022 3:13 AM UTC

References are getting loaded after executing a query on all Pages. Sample query of getting reference of /content/we-retail/us

//element(*, cq:Page)[(jcr:contains(., '"/content/we-retail/us"'))]

You can either update all links of page at the time of movement or override the reference section to update query to exclude the archive path.
URI that is loading references : /mnt/overlay/wcm/core/content/sites/jcr:content/rails/references/items/references.provider.html?item=PAGE_PATH

Translate
akhilraj
akhilrajAuthor
Level 5
Aug 22, 2022 3:54 AM UTC

Hi @sachin_arora_ ,

Thanks for the reply, but I am not clear where we have to update the query or we can see the existing query written?

I am thinking if there is an OOTB place where query is written we can use custom one for the requirement.

Can you provide that info.

Translate
Sachin_Arora_
Sachin_Arora_Accepted solution
New Participant
Aug 22, 2022 5:47 AM UTC

@akhilraj that would require debugging the existing flow. I can share the path of components being used in side rail : /libs/wcm/core/components/coral/references

Translate