Search code examples
phpconcrete5

How to get pageID from block in view.php at Concrete5 CMS


I want transfer some data from page attributes as GET Request data. URL for request I create in block's view.php. How I can get cID of current page in view.php ?


Solution

  • $currentPageCID = Page::getCurrentPage()->getCollectionID();