ReferenceSearch excluding properties from being adjusted | Community
Skip to main content
October 16, 2015
Solved

ReferenceSearch excluding properties from being adjusted

  • October 16, 2015
  • 3 replies
  • 719 views

Does anyone know how to exclude certain properties from being adjusted by the ReferenceSearch class when a parent page is moved. Is there a list of excluded properties that can be configured?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

Ned Perry wrote...

If an author on the CQ author instance moves a page (renames it).

if a child page has a property referencing another child page of the page that has been moved or renamed then that reference is adjusted.

So e.g:

page1/

      page2

      page3 (with property legacyurl holding path to page2 e.g /page1/page2

Then if page1 is renamed to 'newpage' then page3.legacyurl = /newpage/page2

I want to stop this from happening the legacyurl property should remain /page1/page2

 


Why do you want to keep invalid location. Anyhow coming to original question it is not configurable.  As an alternative create a custom servlet for path /bin/wcm/references and give highest ranking.

3 replies

smacdonald2008
Level 10
October 16, 2015

Can you please describe your use case in more detail.

nedperry1Author
October 16, 2015

If an author on the CQ author instance moves a page (renames it).

if a child page has a property referencing another child page of the page that has been moved or renamed then that reference is adjusted.

So e.g:

page1/

      page2

      page3 (with property legacyurl holding path to page2 e.g /page1/page2

Then if page1 is renamed to 'newpage' then page3.legacyurl = /newpage/page2

I want to stop this from happening the legacyurl property should remain /page1/page2

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

Ned Perry wrote...

If an author on the CQ author instance moves a page (renames it).

if a child page has a property referencing another child page of the page that has been moved or renamed then that reference is adjusted.

So e.g:

page1/

      page2

      page3 (with property legacyurl holding path to page2 e.g /page1/page2

Then if page1 is renamed to 'newpage' then page3.legacyurl = /newpage/page2

I want to stop this from happening the legacyurl property should remain /page1/page2

 


Why do you want to keep invalid location. Anyhow coming to original question it is not configurable.  As an alternative create a custom servlet for path /bin/wcm/references and give highest ranking.