Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 05:17:13 PM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
155544 Posts in 21714 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: display current page path and current page id  (Read 1146 times)
Availor

Offline Offline

Posts: 225



« on: February 10, 2011, 12:52:05 AM »

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 smiley
Logged
DarkViper
Development Team
*****
Offline Offline

Posts: 1253


« Reply #1 on: February 10, 2011, 01:56:03 AM »

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.
« Last Edit: February 10, 2011, 02:03:24 AM by DarkViper » Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!