[TYPO3] globalVar problem: SOLUTION

Rob De Vries spam_this at pandora.be
Thu Apr 6 14:16:19 CEST 2006


> I have this TS:
> 
> What it does: It counts the rows in a table where workshops LIKE '%1%' 
> (works and gives me the correct result)
> 
> Now, I like that IF the amount of rows are > then the max (55) then wrap 
>  the result in another way.

I'm going to post the solution in here, this way, maybe, someone else 
can benefit from it:

#get the value from the DB
temp = TEXT
temp.numRows {
table = tx_ani06animatoren_ani
select.pidInList =  this
select.where = workshops LIKE '%1%'
}

#use the value to do some IF's
plugin.tx_thmailformplus_pi1.markers.plw1 = COA
plugin.tx_thmailformplus_pi1.markers.plw1 {
10 < temp
10 {
if.value = 120
if.isGreaterThan < temp
wrap = /> Stoelgym22</td><td>A12</td> <td>25</td> <td>|</td>
}

20 < temp
20 {
if.value = 120
if.equals < temp
wrap = /> Full</td><td>A12</td> <td>25</td> <td>|</td>
}


30 < temp
30 {
if.value = 120
if.isLessThan < temp
wrap = /> Full</td><td>A12</td> <td>25</td> <td>|</td>
}

}

Many thanks to Peter Förger

have fun with it

grtz
Rob



More information about the TYPO3-english mailing list