Hi All,
I want to move a node above or below to a particular node in sightly handler. Similar to how we order a node in CRXDE manually.
Ex:
jcr:Content
Node1
Node2
Node0
Now, I want to move Node0 above Node1, in sightly handler.
Regards,
Vikram.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi Vikram,
There is com.day.cq.commons.jcr.JcrUtil API available through which you can reorder/move your nodes.There is setChildNodeOrder() method where you specify the new order for the children.
Hope this helps!
Nupur
Hi Vikram,
There is com.day.cq.commons.jcr.JcrUtil API available through which you can reorder/move your nodes.There is setChildNodeOrder() method where you specify the new order for the children.
Hope this helps!
Nupur
Session session = resourceResolver.adaptTo(Session.class);
session.move(srcpath,destpath);
session.save();
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies