[TYPO3-templavoila] Retrieve FCE SelectorBox value

Dmitry Dulepov [typo3] dmitry at typo3.org
Wed May 21 09:06:21 CEST 2008


Hi!

Régis TEDONE wrote:
> Using Typo3 4.2 - Templavoila 1.3.6 - FCE
> 
> I'm trying to read a Selector box value from a DS XML, and inject its 
> value in an another variable with no result at this time.
> 
> I've got a first field "field_color" rendered as Selector box, and a 
> second field rendered as none, with a typoscript that try  (actually) to 
> retrieve the value of the selectorbox.
> 
> Here is the DS XML for this FCE.

<skip>

>                    10.scolor = TEXT
>                    10.scolor.field =* field_color*

Should be no * of course :)

>                    20 = USER
>                     *20.scrollercolor *< 10.scolor
>                     20.sbcss = scrollbar.css
>                    20.userFunc = tx_rtscrollerprod->main

Remember that "<" operator in TypoScript does not copy ~value~, it copies the TypoScript! So:

> 20.scrollercontroll always populate with the value "TEXT" and not the 
> desired SelectorBox value.

Try dumping the content of $this->cObj->data inside tx_rtscrollerprod->main. Does it give you anything useful?

-- 
Dmitry Dulepov
TYPO3 core team
Web: http://typo3bloke.net/
"Nothing is impossible. There are only limits to our knowledge"


More information about the TYPO3-project-templavoila mailing list