[TYPO3] TV and TypoScriptObjPath in a Container

Fabio ex Typo3 n00b email at email.tld
Thu Apr 20 15:35:48 CEST 2006


Dmitry Dulepov ha scritto:

> There is no lib.Obj in your code below.

With lib.Obj I mean, general lib object

  > Wrong code: <type>array</type> and <eType>ce</sType> and
> <objPath>lib.left_menu</objPath> are all incompatible with each other.

TV made this code, I dont modify manually the XML
btw I made a new map of the elements.

> 
> So, lib.navLeft will be displayed once and lib.login_box will be
> displayed once. This is what you get and it is correct according to your
> DS XML.

but if I put a value on lib.navLeft it will not be displayed.

Thx Dmitry

This is the remap code, but nogthing is displayed

setup:
lib.nav_left = TEXT
lib.nav_left.value = AAA

XML DS

<T3DataStructure>
     <ROOT type="array">
         <tx_templavoila type="array">
             <title>ROOT</title>
             <description>Select the HTML element on the page which you 
want to be the overall container element for the template.</description>
         </tx_templavoila>
         <type>array</type>
         <el type="array">
             <field_left_menu type="array">
                 <type>array</type>
                 <tx_templavoila type="array">
                     <title>left_menu</title>
                     <description>[left menu]</description>
                     <eType>input</eType>
                 </tx_templavoila>
                 <el type="array">
                     <field_nav_left type="array">
                         <tx_templavoila type="array">
                             <title>nav left</title>
                             <sample_data type="array">
                                 <numIndex index="0">[nav left]</numIndex>
                             </sample_data>
                             <eType>TypoScriptObject</eType>
                             <eType_EXTRA type="array">
                                 <objPath>lib.nav_left</objPath>
                             </eType_EXTRA>
 
<TypoScriptObjPath>lib.nav_left</TypoScriptObjPath>
                         </tx_templavoila>
                     </field_nav_left>
                     <field_login_box type="array">
                         <tx_templavoila type="array">
                             <title>login box</title>
                             <sample_data type="array">
                                 <numIndex index="0">[login box]</numIndex>
                             </sample_data>
                             <eType>TypoScriptObject</eType>
                             <eType_EXTRA type="array">
                                 <objPath>lib.login_box</objPath>
                             </eType_EXTRA>
 
<TypoScriptObjPath>lib.login_box</TypoScriptObjPath>
                         </tx_templavoila>
                     </field_login_box>
                 </el>
             </field_left_menu>
         </el>
     </ROOT>
</T3DataStructure>



More information about the TYPO3-english mailing list