Page 1 of 1

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

Posted: Wed Jul 12, 2006 8:48 pm
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

Posted: Wed Jul 12, 2006 9:08 pm
by carl_galloway
use {if $startpage} show intro {/if}

Posted: Wed Jul 12, 2006 9:34 pm
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?

Posted: Wed Jul 12, 2006 9:48 pm
by judebert
And Carl beats me to it again. Nice job, Carl!

Posted: Thu Jul 13, 2006 1:07 pm
by garvinhicking
Hi!

Yeah, most of the variables can be found here:

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

Best regards,
Garvin

Posted: Thu Jul 13, 2006 1:46 pm
by djtempest
very useful didnt spot that when looking in the documentation cheers :D