[TYPO3-templavoila] Retrieve FCE SelectorBox value

Régis TEDONE regis.tedone at free.fr
Wed May 21 08:38:32 CEST 2008


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.

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<T3DataStructure>
    <meta type="array">
        <langDisable>1</langDisable>
    </meta>
    <ROOT type="array">
        <tx_templavoila type="array">
            <title>ROOT</title>
            <description>Sélectionner dans la page l'élément HTML qui 
doit être le conteneur principal pour le gabarit.</description>
        </tx_templavoila>
        <type>array</type>
        <el type="array">
            <field_color type="array">
                <tx_templavoila type="array">
                    <title>Couleur du slider</title>
                    <description>Mappez ici la zone de sélection de 
couleur du scroller</description>
                    <sample_data type="array">
                        <numIndex index="0">[ COULEUR SCROLLER ]</numIndex>
                    </sample_data>
                    <eType>select</eType>
                </tx_templavoila>
                <TCEforms type="array">
                    <config type="array">
                        <type>select</type>
                        <items type="array">
                            <numIndex index="0" type="array">
                                <numIndex 
index="0">Bleu/Corporate</numIndex>
                                <numIndex index="1">blue</numIndex>
                            </numIndex>
                            <numIndex index="1" type="array">
                                <numIndex 
index="0">Violet/Leukemia</numIndex>
                                <numIndex index="1">violet</numIndex>
                            </numIndex>
                            <numIndex index="2" type="array">
                                <numIndex index="0">Rose/Breast 
Cancer</numIndex>
                                <numIndex index="1">pink</numIndex>
                            </numIndex>
                        </items>
                        <default>0</default>
                    </config>
                    <label>Couleur du slider</label>
                </TCEforms>
                <type>no_map</type>
            </field_color>
            <field_content type="array">
                <tx_templavoila type="array">
                    <title>Contenu</title>
                    <description>Mappez ici la zone de contenu</description>
                    <sample_data type="array">
                        <numIndex index="0">[Contenu ]</numIndex>
                    </sample_data>
                    <eType>ce</eType>
                    <tags>div:inner</tags>
                    <TypoScript>
                        10= RECORDS
                        10.source.current=1
                        10.tables = tt_content
                                </TypoScript>
                    <oldStyleColumnNumber 
type="integer">0</oldStyleColumnNumber>
                </tx_templavoila>
                <TCEforms type="array">
                    <config type="array">
                        <type>group</type>
                        <internal_type>db</internal_type>
                        <allowed>tt_content</allowed>
                        <size>5</size>
                        <maxitems>200</maxitems>
                        <minitems>0</minitems>
                        <multiple>1</multiple>
                        <show_thumbs>1</show_thumbs>
                    </config>
                    <label>SCROLLER</label>
                </TCEforms>
            </field_content>
            <field_scrollparam type="array">
                <tx_templavoila type="array">
                    <title>Scroll parameters</title>
                    <description>Mappez ici la zone de paramétrage du 
scrollbar</description>
                    <sample_data type="array">
                        <numIndex index="0">[ PARAMS SCROLLBAR ]</numIndex>
                    </sample_data>
                    <eType>none</eType>
                    <tags>*:inner</tags>
                    <TypoScript>
                    <![CDATA[
                    10.scolor = TEXT
                    10.scolor.field =* field_color*
                    20 = USER
                     *20.scrollercolor *< 10.scolor
                     20.sbcss = scrollbar.css
                    20.userFunc = tx_rtscrollerprod->main
                    ]]>                   
                    </TypoScript>
                </tx_templavoila>
            </field_scrollparam>
        </el>
    </ROOT>
</T3DataStructure>
------------------------------------------------------

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

Is someone has an idea how to retrieve a variable from a SelectorBox in 
DS xml for FCE.

Thanks !




More information about the TYPO3-project-templavoila mailing list