[TYPO3] globalVar problem

Rob De Vries spam_this at pandora.be
Wed Apr 5 15:56:38 CEST 2006


Hey List,

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.


plugin.tx_thmailformplus_pi1.markers.plw1 = TEXT
plugin.tx_thmailformplus_pi1.markers.plw1.numRows {
table = tx_ani06animatoren_ani
select.pidInList =  this
select.where = workshops LIKE '%1%'
}

# numRows are more then 54 ? Yes, at the moment there ar 55 rows with #that.
# but this does not work. It skips and gives me the normal wrap

[globalVar = plugin.tx_thmailformplus_pi1.markers.plw1.numRows > 54 ]
plugin.tx_thmailformplus_pi1.markers.plw1.wrap =  /> 
Full</td><td>A12</td> <td>25</td> <td>|</td>
[else]
plugin.tx_thmailformplus_pi1.markers.plw1.wrap =  /> 
Stoelgym22</td><td>A12</td> <td>25</td> <td>|</td>
[end]


anybody knows what's wrong with the picture?

Tnx
Rob



More information about the TYPO3-english mailing list