CQ5User
CQ5User

Reputation: 29

How to add new property to JCR node through CQ.extjs?

I need to add a new property to a existing node in JCR:content from javascript(ExtJS).

Upvotes: 1

Views: 3434

Answers (1)

Tomek Rękawek
Tomek Rękawek

Reputation: 9304

Use HTTP POST method (via AJAX) and Sling POST servlet, like:

CQ.HTTP.post('/content/path/to/my/page/jcr:content', null, { newProperty: '123' });

Upvotes: 8

Related Questions