current page test
Posted: Wed Jul 13, 2005 3:12 pm
Hello,
I hope that this is not already answered I did a search and nothing came up.
I am writing a plugin,
I would like to know if there is some simple that will return to me the alias of the current page that the user is on?
I have a picture on the home page of a site and I only want to show that picture if the user is seeing the home page with out making one template for just the home page and the another template for the rest of the pages.
Yes I have to picture in the template... trust me on this.
So far I have this:
if( $_GET['page'] == "home" )
but that doesn't cover it. When the user first comes tot he site page is nt defined.
Any help would be super appreciated.
Rob
I hope that this is not already answered I did a search and nothing came up.
I am writing a plugin,
I would like to know if there is some simple that will return to me the alias of the current page that the user is on?
I have a picture on the home page of a site and I only want to show that picture if the user is seeing the home page with out making one template for just the home page and the another template for the rest of the pages.
Yes I have to picture in the template... trust me on this.
So far I have this:
if( $_GET['page'] == "home" )
but that doesn't cover it. When the user first comes tot he site page is nt defined.
Any help would be super appreciated.
Rob