PDA

View Full Version : custom text on homepage only - template customization


streetsweeper
02-16-2007, 07:33 PM
Hi,

I have an area in my header template that I want certain text to appear only when on the homepage - when visitors go to a thread the thread title will appear in that area instead. I figured out how to pull in the thread title ($threadinfo[title]) but can someone tell me how to write an "if/then" statement that will pull my alternate text in on the homepage?

Thanks!

paul41598
02-16-2007, 07:37 PM
<if condition="THIS_SCRIPT == 'index'">
text
</if>

streetsweeper
02-16-2007, 07:45 PM
I put that in verbatim and it "broke" it - anything specific I should have swapped out besides the "text" part?

paul41598
02-16-2007, 07:49 PM
Not sure, that shoulda worked. I'd have to see whats going on

streetsweeper
02-16-2007, 07:52 PM
Ahhh - a matter of where I put my next line I think - working now. Thanks so much!