$PageID and $TableName

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
ghasembaghi
User
Posts: 293

$PageID and $TableName

Post by ghasembaghi »

i need to access to current $PageID and $TableName in "Server Events > Global > All Pages > Page_Head" section.
please help me


sangnandar
User
Posts: 980

Post by sangnandar »

Page_Head() is something inside <head></head> tag and it doesn't have PageID/TableName in it, while PageID/TableName exist within <body></body> tag.
So I think you can't have these on Page_Head() event.


Webmaster
User
Posts: 9427

Post by Webmaster »

Try:
if (CurrentPage()) $pageId = CurrentPage()->PageID;


Post Reply