[TYPO3-english] ST template checkboxes

Sergey Alexandrov serg at alexandrov.us
Wed Dec 28 10:58:12 CET 2011


Guys,

I have an 'options' field in the database, which is a set of check-boxes
I'm trying to display some message(s) depending on checked values with 
typoscript, but ... couldn't find if I can use bitwise operators in 
typoscript.
I have no problem with a single check-box, but set of boxes is actually 
is bit set ... any ideas? I've tried something like code below, but 
obviously it doesn't work :(

ITEMOPTIONS = COA
ITEMOPTIONS {
     10 = TEXT
     10.value = First option
     10.if.value = 1
     10.if.equals.field = options & 1

     20 = TEXT
     20.value = Second option
     20.if.value = 2
     20.if.equals.field = options & 2

     ....
}

Please advise (note: there could be more check-boxes ....)

Thank you,
Sergey


More information about the TYPO3-english mailing list