[Typo3] "IF" confusion - please help!

Peter Klein peter at umloud.dk
Wed Oct 12 00:12:31 CEST 2005


Hi Scotty. Try using "conditions" instead.
http://typo3.org/documentation/document-library/doc_core_tsref/globalVars/

Something like this:
-- cut --
[globalVar = TSFE:id = <id of your HOME page here>]
blabla.subparts.NEWSID = TEXT
blabla.subparts.NEWSID.value = id="news"
[GLOBAL]
-- cut --

---
Peter Klein / Umloud Untd


"Scotty C" <superscotty19 at yahoo.com> wrote in message 
news:mailman.3127.1129068122.10463.typo3-english at lists.netfielders.de...
>> >
>> > 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