We can get current page id by using $GLOBALS[‘objPage’]->id.

Advertisements