How can I get the list of pages in a folder? | Community
Skip to main content
New Participant
October 16, 2015
Solved

How can I get the list of pages in a folder?

  • October 16, 2015
  • 1 reply
  • 1134 views

Hi,

I want to have the list of pages of news in news folder. I want to return the title & date of created time sorted one.

I need a limit number in order to return those # of news pages information. I have a dialog which has 2 field: Path of news & limit number;

    String parentPage = properties.get("parentPage", currentPage.getPath());
    // this one shows me the path parentPage: /content/ci/news

   (I am not sure how to write this part: TagManager tagM = resourceResolver.adaptTo(TagManager.class); )?!

   I tried with pagemanager which wasn't success.

Now, how should I return the list of pages in this path?

Thanks,

Bahareh

 

 


  

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 smacdonald2008

Here is a community article that addresses this use case:

http://labs.sixdimensions.com/blog/2012-08-05/select-pages-cq5-dialog/

1 reply

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 16, 2015

Here is a community article that addresses this use case:

http://labs.sixdimensions.com/blog/2012-08-05/select-pages-cq5-dialog/