Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Adding Data in JCR Repository on Dragging of Component

Avatar

Level 4

Hi All,

I was trying to add a field within JCR Content while dragging the component,

What are the possible ways to add Data in to JCR Content without submitting through Classic UI Dialog

As per our assumption data is added in to JCR content only when it is submitted through dialog.

Can someone please explain how to  get this value in JCR ?

Thanks.

3 Replies

Avatar

Level 7

Use cq:template node for this.. Here is a blog that explains just that thing very precisely . Using the cq:template file | 6D Labs 

Avatar

Level 10

I am not clear on your requirement. Why would dragging a component from the side rail to a page in author put data into the JCR. If you want to store data in the JCR, you can use an API like JCR API or Sling API.

Avatar

Level 10

Hi,

Can you explain your use case little more in detail? what and where in JCR you want to add when you drag a component?