activate just the jcr:content

Avatar

Avatar

victor_toledo_3

Avatar

victor_toledo_3

victor_toledo_3

03-01-2020

Hi community,

I'm trying to find a way to activate the page properties without activating the content of the components.

So, I want to activate only the jcr:content node without the child nodes.
I've read the replication API but I can't find something to help me. ReplicationContentFilter and also check EventHandler

I've all the code, I added a new button in the top bar of sites.html, which invokes a servlet to make the publication. But when using replicator.replicate with the jcr: content node, the content of the child components is also activated.

Does anyone have any idea how to do it?

Thanks in advance

View Entire Topic

Avatar

Avatar

victor_toledo_3

Avatar

victor_toledo_3

victor_toledo_3

13-01-2020

Hi Jörg_Hoh

Can i do that by code? I need to add a custom action for the authors.

What do you think about 

https://sling.apache.org/documentation/bundles/distribution.html#forward-distribution and 
SimpleDistributionRequest sdr =
        new SimpleDistributionRequest(DistributionRequestType.ADD, true, assetPath);
    slingDistributor.distribute(PUBLISH_AGENT_NAME, resolver, sdr);
 
Thanks