news only on frontpage
Posted: Thu Mar 15, 2007 6:44 pm
I feel a bit stupid because I know there is some kind of simple way of doing this but I just cannot figure out where.
I have CMSMS 1.0.4 and I would like to use only one template on all pages and for that I need a way to put news items from NEWS-module (2.2) only on frontpage. The functionality I am looking for is something as described below
The problem is that where and how do I get the "frontpage" to figure out which page is the frontpage and with what to compare it.
I have CMSMS 1.0.4 and I would like to use only one template on all pages and for that I need a way to put news items from NEWS-module (2.2) only on frontpage. The functionality I am looking for is something as described below
Code: Select all
if (page == frontpage) {
echo '<div id="extras">\n';
{cms_module module="news" number="2"}
echo '</div>\n';
} else {
echo '<div id="zip"></div>';
}