[TYPO3-english] question on TSref manual
typo3 study
typostudy at gmail.com
Wed Jun 6 09:22:34 CEST 2012
Hi,
Got it. Thanks.
Tom
On Wed, Jun 6, 2012 at 3:13 PM, François Suter <fsu-lists at cobweb.ch> wrote:
> 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<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
>
> ______________________________**_________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-**bin/mailman/listinfo/typo3-**english<http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english>
>
More information about the TYPO3-english
mailing list