Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

ReferenceSearch excluding properties from being adjusted

nedperry
Level 1
Level 1

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?

1 Accepted Solution
Sham_HC
Correct answer by
Level 10
Level 10

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.

View solution in original post

3 Replies
smacdonald2008
Level 10
Level 10

Can you please describe your use case in more detail.

nedperry
Level 1
Level 1

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
Correct answer by
Level 10
Level 10

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.

View solution in original post