homepage if... statement [solved]
Posted: Fri Feb 08, 2008 9:43 pm
Hi,
First post so please be gentle. I am used to smarty based templates and I was hoping that I could do something like the following. I have tried a lot of different variables to try and get the same result but to no avail.
In this example I tried to define the variable in the home.php controller file and put the following in the layout.tpl file.
What I am trying to achieve - Is add a div containing images, adverts, promos or what ever it might be above the main content and side navigation divs on the homepage but on no other pages.
Thanks very much in advance, I hope there is a solution.
And congrats on a great product at a great price
Regards
Jon
First post so please be gentle. I am used to smarty based templates and I was hoping that I could do something like the following. I have tried a lot of different variables to try and get the same result but to no avail.
In this example I tried to define the variable in the home.php controller file and put the following in the layout.tpl file.
Code: Select all
<?php if ($ishomepage == "1") { ?>
This is the homepage
<? } ?>
Thanks very much in advance, I hope there is a solution.
And congrats on a great product at a great price

Regards
Jon