Dev Help - PageList display 2nd level sub-pages?
Permalink 1 user found helpful
Hello all, does anyone know how to get the pagelist block to display the 2nd level subpages beneath the current page. To explain, I have a top level page called 'All FAQs' with child pages that act as categories. Each category page has child pages for each faq question/answer set.
e.g.
-All FAQs
--Category #1
---faq
---faq
--Category #2
---faq
How can I display ALL of the faq's on the 'All FAQs' page without the category pages displaying?
This is pretty easy to do in modx, but I really want to use concrete5 to do this and it looks like I need to customize the pagelist block to get my desired behavior.
I imagine this would be a pretty common request that someone has already solved... (fingers crossed)
Thanks!
e.g.
-All FAQs
--Category #1
---faq
---faq
--Category #2
---faq
How can I display ALL of the faq's on the 'All FAQs' page without the category pages displaying?
This is pretty easy to do in modx, but I really want to use concrete5 to do this and it looks like I need to customize the pagelist block to get my desired behavior.
I imagine this would be a pretty common request that someone has already solved... (fingers crossed)
Thanks!
I would create a page type for FAQ pages, then have the page list block list all pages under the "All FAQs" page of the "FAQ" page type. (And make sure the Category #1 and Category #2 pages are NOT of the "FAQ" page type).
thanks! I thought I should add that when I set the pagelist block to display pages, of the page type FAQ, 'beneath this page' option it didn't work. I had to set the pagelist block to display pages 'everywhere' which works fine. It would be nice if the pagelist block had a little more flexibility, to control how it displays child pages but your suggestion works and so far so good. Thanks again. BTW saw you in the Random Friday video, good work, can't wait til they get HD video so we can actually see the code examples :)