Page 1 of 1

Having something show up on the home page ONLY

Posted: Wed Mar 14, 2007 7:31 pm
by slavezeo
I tried to search (I really did) but didn't come up with anything that was useful. What I am wanting to do is include a flash file (most likely a menu banner of some sort) or even a plain php file in the home page only and not have it show up on any other pages of the blog.

I figured it would have to be some sort of "if this is home page then include this file" but I am having trouble figuring out the syntax to do it.

If I can find the answer by searching then please prod me along in the right direction for searching. Including what terms to search for.

Thanks in advance.

Re: Having something show up on the home page ONLY

Posted: Thu Mar 15, 2007 10:26 am
by garvinhicking
Hi!

You can do that by editing for example your index.tpl template file and add this:

Code: Select all

{if $startpage}
...flash code here...
{/if}
this will then only show up on the startpage of your blog.

HTH,
Garvin