pageID from block in view.php

Permalink 1 user found helpful
Actually I want to transfer some data from page attributes as GET Request data. URL for request I create in block's view.php. How to get pageID from block in view.php?

theneptune
 
theneptune replied on at Permalink Best Answer Reply
theneptune
I have got the solution
$currentPageCID = Page::getCurrentPage()->getCollectionID();


It may be helpful to other.

Thanks

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.