since ‎02-06-2018
‎10-12-2019
mohani57395378
Level 1
Re: Page.listChildren() or data-sly-list=currentPage.listChildren to return sorted list
Avatar

mohani57395378

mohani57395378
- Adobe Experience Manager
Hi Nirmala,Thanks for your reply.I have tried to do the same using currentPage.listChildren but i don't see any methods which will give a sorted list based on some attributes(replication date, title) just like Filters(which will return specific pages).use(function () { return { pageList : currentPage.listChildren }});

Views

958

Likes

0

Replies

0
Page.listChildren() or data-sly-list=currentPage.listChildren to return sorted list
Avatar

mohani57395378

mohani57395378
- Adobe Experience Manager
Hi All,I am recursively listing out all the sub pages from a path using data-sly-list=currentPage.listChildren. But its returning the list as per node structure, is there anyway we can pass some parameters to get a sorted list based on title or published date.

Views

2.8K

Likes

0

Replies

5