Display classic UI pages and folders in alphabetical order

Avatar

Avatar
Validate 1
Level 2
Sumanth-Narra
Level 2

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
Sumanth-Narra
Level 2

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Sumanth-Narra
Level 2

24-10-2018

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

Replies

Avatar

Avatar
Validate 1
Level 2
Sumanth-Narra
Level 2

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
Sumanth-Narra
Level 2

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Sumanth-Narra
Level 2

29-10-2018

can someone respond to the above issue?  Arun Patidar

smacdonald2008 @aem6.3 Arun Patidar

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

29-10-2018

Why not use Touch UI - this functionality is included when you select LIST view.

List.png

Most community members and Adobe are movign away from Classic UI. You will not find many AEM 6.3/6.4 examples for Classic UI.

Avatar

Avatar
Validate 1
Level 2
Sumanth-Narra
Level 2

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
Sumanth-Narra
Level 2

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Sumanth-Narra
Level 2

29-10-2018

For Touch UI the sorting fixed fine in asc order, but is there any way we can fix in classic UI
here is my finding in classic:

The default network call which goes and sort pages is http://localhost:4502/content.pages.json?_dc=1540458605487&start=0&limit=30&predicate=siteadmin

To sort pages based on title, the following network call should happen where sort=title and dir=ASC params needs to be passed.

http://localhost:4502/content.pages.json?_dc=1540458727426&sort=title&dir=ASC&start=0&limit=30&predi...

In siteadmin.js I checked the function loadPages()

It contains the sortInfo which is by default sort=index and dir=ASC. Here, what I couldn't find is from where these values are coming and where it can be modified.

smacdonald2008

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

29-10-2018

I checked with some of our internal users - (they too are not doing Classic UI anymore) - here are some blogs on Classic UI development that may point you in the correct direction.

http://experience-aem.blogspot.com/2015/05/aem-6-sp2-classic-ui-task-management-sort-task-projects-t...

http://experience-aem.blogspot.com/2014/04/aem-cq-56-sort-tree-nodes-of-browse-dialog-pathfield.html

Avatar

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,318 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile

Avatar
Coach
MVP
Arun_Patidar
MVP

Likes

1,442 likes

Total Posts

3,318 posts

Correct reply

941 solutions
Top badges earned
Coach
Contributor 2
Ignite 10
Give Back 700
Boost 1000
View profile
Arun_Patidar
MVP

29-10-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-...

I can't see any parameter related to sorting.

Can you send me the path of siteadmin.js

Avatar

Avatar
Validate 1
Level 2
Sumanth-Narra
Level 2

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
Sumanth-Narra
Level 2

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Sumanth-Narra
Level 2

30-10-2018

Hi Arun

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

thanks for checking

Arun Patidar

Avatar

Avatar
Boost 5
Level 2
chandu_t
Level 2

Likes

7 likes

Total Posts

29 posts

Correct reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 5
View profile

Avatar
Boost 5
Level 2
chandu_t
Level 2

Likes

7 likes

Total Posts

29 posts

Correct reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Applaud 5
Affirm 5
View profile
chandu_t
Level 2

30-10-2018

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

"baseParams": {

                    "sort": "title",

                    "start":0,

                    "limit":gridCfgs[name].pageSize,

                    "predicate":gridCfgs[name].storePredicate

                }

Avatar

Avatar
Validate 1
Level 2
Sumanth-Narra
Level 2

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
Sumanth-Narra
Level 2

Like

1 like

Total Posts

11 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
Sumanth-Narra
Level 2

30-10-2018

nope, it's not sorting pages/folders in left side rail(root tree content)