Getting cIDs of child pages

Permalink 4 users found helpful
Hi community!

I want to display random content of a set of pages. I created a certain folder in my sitemap (cID 67) and now I am searching for a way to read all cIDs of the children pages within my template. Afterwards I will run some php code to choose one random cID but how do I get all children cIDs?

I hope you can help me :-)
Regards
Chris

cleuenberg
 
cleuenberg replied on at Permalink Reply
cleuenberg
just figured it out:

$children = Page::getByID(67)->getCollectionChildrenArray(1);