Having something show up on the home page ONLY

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
slavezeo
Posts: 2
Joined: Thu Oct 19, 2006 4:18 pm

Having something show up on the home page ONLY

Post 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.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Having something show up on the home page ONLY

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply