如何通过CQ.extjs向JCR节点添加新的属性? [英] How to add new property to JCR node through CQ.extjs?

查看:100
本文介绍了如何通过CQ.extjs向JCR节点添加新的属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

我们需要向JCR中的现有节点添加一个新的属性:javascript(ExtJS) HTTP POST方法(通过AJAX)和 Sling POST servlet ,如:

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


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

解决方案

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

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

这篇关于如何通过CQ.extjs向JCR节点添加新的属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆