[Typo3] "IF" confusion - please help!

tobias erlacher tobi at 54tec.com
Tue Oct 11 11:11:33 CEST 2005


Hi Scott

Something like this should work (untested)

TEMP.newsId=TEXT
TEMP.newsId.value=id="news"
TEMP.newsId.if.value=Home
TEMP.newsId.if.equals.data=page:title
page.10.subparts.NEWSID<TEMP.newsId

For more infos look in tsref for if.

Have fun
Tobias Erlacher
www.typo3wizard.com

> Good day everyone!
>
>
> I have a subpart:
>    <td <!--###NEWSID###--> <!--###NEWSID###--> >
>
> and I want to populate the subpart with:
>    id="news"
>
> IF the page title is:
>    Home
>
>
> Now, if I was normally coding, this is my thinking:
> if (field:title = Home)
>    then subparts.NEWSID.value = id="news"
>
> So in the end, my HTML template would look like this
> (assuming we were at the Home page):
>    <td id="news">
>
> ... But I have no idea how to do this in Typo3 -
> please help!
>
> Thanks!
> -Scott.



More information about the TYPO3-english mailing list