Expand my Community achievements bar.

SOLVED

how to make tree alphabetical?

Avatar

Former Community Member

Hi everyone, I was wondering how do you make the tree structure go in alphabetical order vs being by publish date?

I'm attaching the image. 

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Please refer to this tool from ACS Commons

https://adobe-consulting-services.github.io/acs-aem-commons/features/sort-nodes/index.html

 

Sort Nodes is a tool to sort child nodes by node name or jcr:title, for example, to alphabetize pages or tags in Sites Admin. 

 


Aanchal Sikka

View solution in original post

3 Replies

Avatar

Level 10

Out of the box - you cannot re-order the nodes in CRXDE Lite based alphabetical order. 

However -- you can use the JCR API to modify nodes. Create Java code that creates nodes based on an alphabetical order. 

See this community article that talks about using the JCR API:

http://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html

To re-order them, create logic that reads the existing JCR repo location, order them, delete the old structure and create the new structure based on the order you want. 

Avatar

Former Community Member

Thanks a lot! Is it still the same case if this is not actually related to CRXDE lite but the "Websites" page in the Author environment? Sending an updated image

Avatar

Correct answer by
Community Advisor

Please refer to this tool from ACS Commons

https://adobe-consulting-services.github.io/acs-aem-commons/features/sort-nodes/index.html

 

Sort Nodes is a tool to sort child nodes by node name or jcr:title, for example, to alphabetize pages or tags in Sites Admin. 

 


Aanchal Sikka