[TYPO3-english] question on TSref manual
François Suter
fsu-lists at cobweb.ch
Wed Jun 6 09:13:02 CEST 2012
Hi Tom,
> My question is:
> what does this line mean: stuff.if.isTrue.field = header ?
It means that the whole object (i.e. "stuff") will be handled only if
the header field is not empty.
The "if" construct is rather awkward to use. The basics are that if it
returns true, the object it applies to is rendered. Otherwise it returns
empty.
Now "if" can evaluate a variety of conditions, one being simply whether
some value is true or not. In this case the value being evaluated is the
"header" field of the content element and the test will return false is
the header field is empty.
I hope this helps you a bit. Understanding the TypoScript "if" is not
easy at first. The reference is there:
http://typo3.org/documentation/document-library/core-documentation/doc_core_tsref/4.7.0/view/1/5/#id553579
but you'll definitely need to work yourself through several examples
before you feel confident about it. It's rather counter-intuitive. Don't
lose faith ;-)
Cheers
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
More information about the TYPO3-english
mailing list