How to set OPV(on-parent-version status) for a property?

Avatar

Avatar

poojac35931336

Avatar

poojac35931336

poojac35931336

03-09-2018

Is there any way to set OPV for a property to be added on cq:PageContent node. By default it is "COPY", as mentioned below :

1563258_pastedImage_0.png

I  want to set it as "IGNORE".

Replies

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839
Arun_Patidar
MVP

03-09-2018

Hi,

I am not sure why you are doing this and what will be  the impact if you'll change this but node types are define in cnd files. For PageContent you need to update /libs/cq/commons/nodetypes/core.cnd

for reference you can check /libs/cq/core/nodetypes/replication.cnd

Avatar

Avatar

poojac35931336

Avatar

poojac35931336

poojac35931336

03-09-2018

My use case is to add some properties on cq:PageContent that can't get copies when someone copy the page from site admin.

I added that property with OPV "IGNORE" for this node type programmatically, but it's not seem to be working. After coping the page I can see the property is still getting copied.

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839

Avatar

Arun_Patidar

MVP

Total Posts

2.9K

Likes

1.1K

Correct Reply

839
Arun_Patidar
MVP

04-09-2018

Hi,

You probably need to do it by package manager.

Custom Node Type not being added with .cnd file

if doesn't work check CQ doesn't pick up nodetypes.cnd changes using Package Manager

Avatar

Avatar

poojac35931336

Avatar

poojac35931336

poojac35931336

04-09-2018

I am able to add the property in crx explorer for cq:PageContent. Problem is that even after adding the property with OPV "IGNORE", it's getting copied.