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..
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..
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?
If you use $page->getCollectionChildrenArray() this should return all levels, then you can display sub pages, sub sug pages.. etc, right?
Remo, just curious, since it's been a while, did you ever find a solution to display all child-pages?
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.
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.
how you can select the parent page from page list block?