page cID

Permalink
Hi All, I'm new to concrete so be gentle;)

I'm having a play with creating a carousel block the has items on it that will be from sub pages. I believe I need the parent page cID from the pages table, is this correct? I can then find sub pages with parent cID.

How would be the best way to find the current pages cID?

Thanks in advance

 
pvernaglia replied on at Permalink Reply
pvernaglia
To get a page ID you can use $c->getCollectionID() but take a look at the page list block, It pulls data from subpages, you will find a good example there to help with what you want to do.