Page activation activating nt:unstructured node not under jcr:content | Community
Skip to main content
Level 4
January 12, 2016
Solved

Page activation activating nt:unstructured node not under jcr:content

  • January 12, 2016
  • 9 replies
  • 2500 views

Hi All,

Currently I am having issue, when I activate a page say test.html a node under test page is also getting replicated. So node path /test/unWantedNodeReplication while I was expecting only node under /test/jcr:content/ should be replicated. Is this is a product bug?

I am using AEM 6.0 SP2. 

Thanks!

Shehjad

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by joerghoh

Shehjadkhan wrote...

Hi Jintendra and Lee,

Thank you for replies, I am aware of replication option at the node level. But that is not the problem I am trying to solve, issue is I want to keep some data under a page outside jcr:content that does not get replicated on page activation. I am replicating them using some other custom code on the basis of use cases.

Thanks!

Shehjad

 


In the authoring interface only pages can get activated as a whole. If your pages contain elements, which should not get activated (or by a different workflow), you should explicitly design for it, and maintain this data outside of the page. It's not possible to exclude parts of a page from being replicated, unless you want to implement this completely on your own (and that's something you should really avoid!).

kind regards,
Jörg

9 replies

Level 8
January 12, 2016

This is expected and 100% normal.

If there is a node that you do not want to be activated when a page is activated, I would consider storing that value elsewhere.

Jitendra_S_Toma
Level 10
January 13, 2016

Hey Shehjadkhan,

You could replicate a single node by using crxde tool. Goto a node path which you want to replicate in cxde and check the crxde bottom console with "Replicate" tab.

Fin attachment for more help.[img]Screen Shot 2016-01-13 at 9.08.09 am.png[/img]

Jitendra

Level 8
January 13, 2016

That's an option, but your authors should never ever be granted access to CRXDE Lite.

Jitendra_S_Toma
Level 10
January 13, 2016

Agreed. 

Jitendra

Level 4
January 13, 2016

Hi Jintendra and Lee,

Thank you for replies, I am aware of replication option at the node level. But that is not the problem I am trying to solve, issue is I want to keep some data under a page outside jcr:content that does not get replicated on page activation. I am replicating them using some other custom code on the basis of use cases.

Thanks!

Shehjad

Jitendra_S_Toma
Level 10
January 13, 2016

Is there any problem keep data (which you don't want to replicate along with the page) outside of page than keep outside of jcr:content?. For instance, keep it in some etc location. 

Jitendra

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
January 14, 2016

Shehjadkhan wrote...

Hi Jintendra and Lee,

Thank you for replies, I am aware of replication option at the node level. But that is not the problem I am trying to solve, issue is I want to keep some data under a page outside jcr:content that does not get replicated on page activation. I am replicating them using some other custom code on the basis of use cases.

Thanks!

Shehjad

 


In the authoring interface only pages can get activated as a whole. If your pages contain elements, which should not get activated (or by a different workflow), you should explicitly design for it, and maintain this data outside of the page. It's not possible to exclude parts of a page from being replicated, unless you want to implement this completely on your own (and that's something you should really avoid!).

kind regards,
Jörg

Level 8
January 14, 2016

Jörg Hoh wrote...

Shehjadkhan wrote...

Hi Jintendra and Lee,

Thank you for replies, I am aware of replication option at the node level. But that is not the problem I am trying to solve, issue is I want to keep some data under a page outside jcr:content that does not get replicated on page activation. I am replicating them using some other custom code on the basis of use cases.

Thanks!

Shehjad

 


In the authoring interface only pages can get activated as a whole. If your pages contain elements, which should not get activated (or by a different workflow), you should explicitly design for it, and maintain this data outside of the page. It's not possible to exclude parts of a page from being replicated, unless you want to implement this completely on your own (and that's something you should really avoid!).

kind regards,
Jörg

 

Totally agree with this.

Ultimately it comes down to how the system/components were architected.  If all of the nodes being activated is a problem, I would start by re-thinking the implementation and tailor it to what you're trying to achieve.

Level 4
January 14, 2016

Thank you everyone I understand what you are saying, have changed the implementation to store nodes not under the node.