Display classic UI pages and folders in alphabetical order | Community
Skip to main content
Sumanth-Narra
Level 2
October 24, 2018

Display classic UI pages and folders in alphabetical order

  • October 24, 2018
  • 1 reply
  • 6464 views

Hi All,

I have a requirement to sort the pages in alphabetical order in classic UI in AEM 6.3. I've tried figuring out which nodes/files are responsible to sort it but couldn't find anything concrete.

Does anyone try to the same thing in Classic UI?

Regards

Sumanth

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

1 reply

Sumanth-Narra
Level 2
October 29, 2018

can someone respond to the above issue?  @Arun Patidar

smacdonald2008 @aem6.3 Arun Patidar

arunpatidar
Community Advisor
Community Advisor
October 30, 2018

Hi,

In classic UI, Child pages fetched via Ajax request to servlet  http://localhost:4502/bin/wcm/siteadmin/tree.json example

http://localhost:4502/bin/wcm/siteadmin/tree.json?_dc=1540881566972&ncc=100&scc=false&_charset_=utf-8&path=%2Fcontent%2Fwe-retail&node=xnode-202

I can't see any parameter related to sorting.

Can you send me the path of siteadmin.js

Arun Patidar
chandu_t
Level 3
October 30, 2018

Hi Arun

Siteadmin path= /libs/cq/ui/widgets/source/widgets/wcm/SiteAdmin.js

thanks for checking

Arun Patidar


Add "sort": "title", to line 236 of SiteAdmin.js

"baseParams": {

                    "sort": "title",

                    "start":0,

                    "limit":gridCfgs[name].pageSize,

                    "predicate":gridCfgs[name].storePredicate

                }