[TYPO3] Reference multiple checkbox fields (TS)

JoH info at cybercraft.de
Tue Jul 25 17:40:50 CEST 2006


> How can I reference individual values of an array in TS?
>
> I have a multiple checkbox field in the pages table but I am unsure
> how to reference particular boxes:
>
>  10 = TEXT
>  10 {
>   if.isTrue.data = page:user_toggles_pagetoggles
>   value = Base pagetoggles is true<br />
>  }
>
> This will return true if any boxes are checked.
>
>   if.isTrue.data = page:user_toggles_pagetoggles.1
>   if.isTrue.data = page:user_toggles_pagetoggles:1
>   if.isTrue.data = page:user_toggles_pagetoggles[1]
>
> This type of notation doesn't seem to reference a single element.
>
> I looked in tsref but was unable to find any details on this.

try this one:

if.isTrue.data = page:user_toggles_pagetoggles|1

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