[Typo3] "IF" confusion - please help!

Scotty C superscotty19 at yahoo.com
Wed Oct 12 00:01:57 CEST 2005


Hi Tobias,

I copied the code exactly as you have it, but it
didn't work :-(
Also, I've been up and down the TSRef to no avail.

Any other ideas?

Thanks,
-Scott.

--- tobias erlacher <tobi at 54tec.com> wrote:

> 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.
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
>
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com



More information about the TYPO3-english mailing list