page list block - recursion

Permalink 1 user found helpful
The page list block is quite handy, especially the feature which allows me to select the parent.

But I'm in need of an additional feature. I should be able to select the parent, but unlike the current behavior I want to see all the sub pages (the sub pages of the sub pages of the sub pages of the sub pages :)

Just wanted to post this in case someone has some thought or even some code about it. Otherwise I'm just going to build it..

Remo
 
admin replied on at Permalink Reply
Hi Remo,

how you can select the parent page from page list block?
okhayat replied on at Permalink Reply
okhayat
When you select a parent page, only the direct children are displayed, right?
If you use $page->getCollectionChildrenArray() this should return all levels, then you can display sub pages, sub sug pages.. etc, right?
MrNiceGaius replied on at Permalink Reply
MrNiceGaius
Remo, just curious, since it's been a while, did you ever find a solution to display all child-pages?
Remo replied on at Permalink Reply
Remo
As Okhayat wrote, I usually did something on top of "getCollectionChildrenArray" which can return all levels..

I often put this stuff in the theme and didn't modify the page list as we often place lists in a place where it shouldn't be removed. getCollectionChildrenArray works well in such situtations.