Site Admin Console Sorting Tree Nodes | Community
Skip to main content
Level 3
October 16, 2015
Solved

Site Admin Console Sorting Tree Nodes

  • October 16, 2015
  • 2 replies
  • 937 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

* 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

2 replies

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

* 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

Level 3
October 16, 2015

Hi Sham,

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

Thanks

K Chaitanya