Expand my Community achievements bar.

How to skip childnode in rollout

Avatar

Level 6

Hi,

I have a child node(translate) under jcr:content for some pages, on rollout of the master page, I don't want this child node to get updated. This child node has properties which are unique to each page and thus should not get updated with master values on rollout.

The Day CQ RolloutManagerImpl configuration has a checkbox Handle Conflict, which if unchecked, the nodes don't get overridden. But in this case, even the multifield child node (item0, item1, etc) also don't get updated. So rollout doesn't work for multifield nodes.

I need an approach which will help rolling out multifield without updating the translate node.

4 Replies

Avatar

Community Advisor

HI @Shaheena_Sheikh ,

You will have to write a custom logic to achieve the requirement. You can try to write an event listener to attach/detach the node from the blueprint whenever there is a condition/property set to a page.

 

-Tarun

Avatar

Level 5

Hi @Shaheena_Sheikh ,

You can configure several OSGi services that support corresponding synchronization actions so that they do not affect specific node types and properties. For example, many properties and subnodes related to the internal functioning of AEM should not be included in a live copy. Only the content that is relevent to the user of the page should be copied.

CQ MSM Content Update Action - Exclusions (com.day.cq.wcm.msm.impl.actions.ContentUpdateActionFactory)

Several properties and node types are excluded by default, these are defined in the OSGi configuration of CQ MSM Content Update Action, under Excluded Page Properties.

By default properties matching the following regular expressions are excluded (i.e. not updated) on rollout:

konstantyn_diachenko_0-1732125955506.png

You can change the expressions defining the exclusion list as required. Try to configure your nodes/properties in highlighted lists. 

 

Best regards,

Kostiantyn Diachenko.

Hi @konstantyn_diachenko ,

the node type of the child node is nt:unstructured, so I am unable to mark that node type for exclusion since most nodetypes are nt:unstructured.

The node is under jcr:content so, page property exclusion also won't work.

 

I want to understand what does paragraph items mean?