[TYPO3] Again about if-staments

JoH info at cybercraft.de
Sat Jun 17 14:22:19 CEST 2006


> I have something wrong here.
>
> temp.colLinks=COA
> temp.colLinks {
>
> 10 = TEXT
> 10 {
>
>
> 10 = COA
> 10 {
> stdWrap.if.isTrue.cObject = CONTENT
> stdWrap.if.isTrue.cObject {
> table = tt_content
> select {
> pidInList = this
>                                  where = colPos = 9
> languageField = sys_language_uid
> }
> }

This can't be working since you are using "if.isTrue" on a CONTENT element
without any renderObj.
The result will always be false.
Since you just want to count entries and not render them you should use
numRows instead.
And you can remove pidInList since it's default is "this".
And you can remove stdWrap since "if" can be used directly in COA.

if.isTrue.numRows {
    table = tt_content
    select {
        where = colPos = 9
        languageField = sys_language_uid
    }
}

Should be working

Joey

-- 
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.cybercraft.de





More information about the TYPO3-english mailing list