Sign in to Community
Sign in to view all badges
Expand my Community achievements bar.
I have a node structure like:
And I need to add 'newComponent' node after 'component2' programmatically.
The result should be:
Can't find a way how to add newComponent node to have that order. Can anyone help? Thanks.
First, you need to create a node using node.addNode() then using below code you can change the order
Node (Content Repository for Java Technology API Version 2.0)