hello,
Can someone please tell me what a variable there is for the current page and current page id?
I wanted to use a code something like this:
if(PAGE_ID == CURRENT_ID) {
}
I mean I want the script to know he is on the current page I'm viewing.
Thanks :-)
the constant PAGE_ID always contains the ID of the current, visible page.
also you can request the current/visible ID by calling $wb->page_id();
the path to current page by $wb->link();
For more information read this (http://www.websitebaker2.org/en/help/developer-guide/variables-and-constants.php?lang=EN).