この会話は、活動がないためロックされています。新しい投稿を作成してください。
この会話は、活動がないためロックされています。新しい投稿を作成してください。
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
表示
返信
いいね!の合計
can someone respond to the above issue? Arun Patidar
smacdonald2008 @aem6.3 Arun Patidar
表示
返信
いいね!の合計
Why not use Touch UI - this functionality is included when you select LIST view.
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.
表示
返信
いいね!の合計
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.
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.
表示
返信
いいね!の合計
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/2014/04/aem-cq-56-sort-tree-nodes-of-browse-dialog-pathfield.html
表示
返信
いいね!の合計
Hi,
In classic UI, Child pages fetched via Ajax request to servlet http://localhost:4502/bin/wcm/siteadmin/tree.json example
I can't see any parameter related to sorting.
Can you send me the path of siteadmin.js
表示
返信
いいね!の合計
Hi Arun
Siteadmin path= /libs/cq/ui/widgets/source/widgets/wcm/SiteAdmin.js
thanks for checking
表示
返信
いいね!の合計
Add "sort": "title", to line 236 of SiteAdmin.js
"baseParams": {
"sort": "title",
"start":0,
"limit":gridCfgs[name].pageSize,
"predicate":gridCfgs[name].storePredicate
}
表示
返信
いいね!の合計
nope, it's not sorting pages/folders in left side rail(root tree content)
表示
返信
いいね!の合計