[TYPO3-dev] How to get all subpage UIDs recursively from PID
Stefan Galinski
sgalinski at df.eu
Mon Aug 22 14:10:20 CEST 2011
Kaczmarczyk Gregor wrote:
> Hi all,
>
> i googled to find a solution for my problem and looked in the TYPO3 API
> but didn't succeed so far.
> Every hint is highly appreciated.
>
> Now to my problem:
>
> I'm developing a small frontend extension and i need to get all subpage
> UIDs recursively (child of child...) from a given PID.
>
> Is there some class/method in the API for this task?
>
> Until now i've found: [1]
> But his seems not to be the best solution for this task.
>
> Thank you in advance,
>
> Gregor
>
> [1] http://typo3.toaster-schwerin.de/typo3_dev/2011_03/msg00265.html
Hi Gregor,
I had the same problem twice in the meanwhile and developed my own code to
solve this problem. It's not perfect and could be improved, but it does it's
job if you don't use workspaces.
https://github.com/sgalinski/rs_fetsy/blob/master/Classes/Domain/Repository/ContextRepository.php
--
Stefan Galinski
staatl. geprüfter Informatiktechniker
More information about the TYPO3-dev
mailing list