$PageID and $TableName
Posted: Sat Dec 09, 2017 4:14 am
i need to access to current $PageID and $TableName in "Server Events > Global > All Pages > Page_Head" section.
please help me
i need to access to current $PageID and $TableName in "Server Events > Global > All Pages > Page_Head" section.
please help me
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.
Try:
if (CurrentPage()) $pageId = CurrentPage()->PageID;