Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Site Admin Console Sorting Tree Nodes

Avatar

Level 3

Hi All,

We got new requirement from client . The requirement is  , In Site Admin Consloe after clikcing "+" icon  of any website node , display the child nodes in Ascending order. Based on my analysis i found that we need to customize the "tree" servlet. But did not found source for this. I did not know is there any other way we can do this. Any pointers/help on this issue is really appreciated.

 

Thanks

k Chaitanya

1 Accepted Solution

Avatar

Correct answer by
Level 10

* Overlay /libs/wcm/core/content/siteadmin
* Create a servlet that handles requests from the SiteAdmin tree widget & return the json output based on your need. [1]
* At /apps/wcm/core/content/siteadmin/grid configure dataUrl property to call your servlet.
*   Sample how it looks after attached

[img]Compare.png[/img]

[1]   http://sling.apache.org/documentation/the-sling-engine/servlets.html

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

* Overlay /libs/wcm/core/content/siteadmin
* Create a servlet that handles requests from the SiteAdmin tree widget & return the json output based on your need. [1]
* At /apps/wcm/core/content/siteadmin/grid configure dataUrl property to call your servlet.
*   Sample how it looks after attached

[img]Compare.png[/img]

[1]   http://sling.apache.org/documentation/the-sling-engine/servlets.html

Avatar

Level 3

Hi Sham,

Thank you .I will proceed with the solution you suggested.

Thanks

K Chaitanya