Check which page is being loaded... IF/ELSE

Permalink
I want to use a different bit of code in the header depending on if they're on the home page (or maybe some other specific page) or not.

Is there a simple way someone can give me to check 'if page == "page name" then {' (bad pseudo code example).

Any help is appreciated, thanks.

jhalchak
 
Mnkras replied on at Permalink Reply
Mnkras
if($c->getCollectionID() == HOME_CID) { //homepage
//code if its the homepage
} else { //other page
//code
}