Highlighted

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

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

Highlighted

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

Highlighted

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.

Highlighted

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.