Page 1 of 1

$PageID and $TableName

Posted: Sat Dec 09, 2017 4:14 am
by ghasembaghi

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


Re: $PageID and $TableName

Posted: Sat Dec 09, 2017 8:31 am
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.


Re: $PageID and $TableName

Posted: Sat Dec 09, 2017 9:22 am
by Webmaster

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