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 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 if CID does not equal 1. I appreciate the help! -Brian
<?php print $c->getCollectionName();?>
<?php print $c->getCollectionName();?>
It would be something like
Perfect, thank you.
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