Is there a way to test if you are on the front page?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
djtempest
Regular
Posts: 6
Joined: Wed Jul 12, 2006 8:45 pm

Is there a way to test if you are on the front page?

Post by djtempest »

I have a little intro thing I would like to display at the top but only on the front page of the site.

Is there a smarty parameter to test for this? I took a guess at {$is_front_page} and {$is_frontpage} but neither of those appear to work..

thanks :D
carl_galloway
Regular
Posts: 1331
Joined: Sun Dec 04, 2005 5:43 pm
Location: Andalucia, Spain
Contact:

Post by carl_galloway »

use {if $startpage} show intro {/if}
djtempest
Regular
Posts: 6
Joined: Wed Jul 12, 2006 8:45 pm

Post by djtempest »

works a treat thanks :D Is there a list/file anywhere that I can view what variables are actually available to use like this?
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

And Carl beats me to it again. Nice job, Carl!
Judebert
---
Website | Wishlist | PayPal
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yeah, most of the variables can be found here:

http://www.s9y.org/102.html

Best regards,
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/
djtempest
Regular
Posts: 6
Joined: Wed Jul 12, 2006 8:45 pm

Post by djtempest »

very useful didnt spot that when looking in the documentation cheers :D
Post Reply