Highlighted

Adding Data in JCR Repository on Dragging of Component

Avatar

Avatar

ketangp28686788

Avatar

ketangp28686788

ketangp28686788

01-01-2018

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.

Replies

Highlighted

Avatar

Avatar

viveksachdeva

Avatar

viveksachdeva

viveksachdeva

02-01-2018

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

Highlighted

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Answer

2.3K
smacdonald2008

02-01-2018

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.

Highlighted

Avatar

Avatar

bsloki

MVP

Total Posts

1.9K

Likes

172

Correct Answer

544

Avatar

bsloki

MVP

Total Posts

1.9K

Likes

172

Correct Answer

544
bsloki
MVP

03-01-2018

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?