Simple "if" statement

Permalink
I am new to PHP, so I was wondering if I could get some help on this one. I am using
<?php print $c->getCollectionName();?>
in my template to display the page title on top of all my pages. If I do not want that to display on my homepage, is there a way to do an if statement to prevent that? In other words, my homepage has a content ID of 1, so only display
<?php print $c->getCollectionName();?>
if CID does not equal 1. I appreciate the help! -Brian

hursey013
 
okhayat replied on at Permalink Best Answer Reply
okhayat
It would be something like
<?php
if ($c->getCollectionID() != 1) print $c->getCollectionName();?>
hursey013 replied on at Permalink Reply
hursey013
Perfect, thank you.
Mnkras replied on at Permalink Reply
Mnkras
or, make a pagetype called home.php and it will leave it out, the home.php is automatically used for the homepage and nothing else