[TYPO3-templavoila] Voila FlexForm Problem and Clean Xml

Fabio ex Typo3 n00b email at email.tld
Fri Apr 21 15:23:02 CEST 2006


I have a problem, I made a new template with [CO] and [EL] inside, the 
current xml is

Syntax highlighting <T3FlexForms> XML:

    1: <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
    2: <T3FlexForms>
    3:     <data>
    4:         <sheet index="sDEF">
    5:             <language index="lDEF">
    6:                 <field index="field_content">
    7:                     <value index="vDEF">119</value>
    8:                 </field>
    9:                 <field index="field_left_box">
   10:                     <el index="el">
   11:                         <field index="field_titolo_menu">
   12:                             <value index="vDEF">Menù</value>
   13:                         </field>
   14:                     </el>
   15:                 </field>
   16:             </language>
   17:         </sheet>
   18:     </data>
   19: </T3FlexForms>

and the Clean Xml is:

    1: <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
    2: <T3FlexForms>
    3:     <data>
    4:         <sheet index="sDEF">
    5:             <language index="lDEF">
    6:                 <field index="field_content">
    7:                     <value index="vDEF">119</value>
    8:                 </field>
    9:             </language>
   10:         </sheet>
   11:     </data>
   12: </T3FlexForms>

But the clean Xml does not work, if I try to write TS in Setup field the 
menu doesnt appear...

So I dont clean and all the stuff work, but the problem is that in 
another page I doesnt have a no-clean xml, how to change it?

Another releated problem, I have two [CO] with [EL] inside, 1 is the one 
I described, and "works", but the second one does not work, nothing is 
displayd in FE, maybe for the same problem that need a FlexForm code for it.

Thanks All!!!


[CO]ROOT
   [CO]Header
     [EL]Titolo
     [EL]Navbar
   [CO]Box Left
     [EL]Titolo Menu
     [EL]Menu OUTER
[EL]Content
[EL]Footer

all the rest are INNER

The DS

<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<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_header type="array">
                 <type>array</type>
                 <tx_templavoila type="array">
                     <title>Header</title>
                     <eType>input</eType>
                 </tx_templavoila>
                 <el type="array">
                     <field_titolo type="array">
                         <tx_templavoila type="array">
                             <title>Titolo</title>
                             <sample_data type="array">
                                 <numIndex index="0">[titolo]</numIndex>
                             </sample_data>
                             <eType>TypoScriptObject</eType>
                             <eType_EXTRA type="array">
                                 <objPath>lib.titolo</objPath>
                             </eType_EXTRA>
 
<TypoScriptObjPath>lib.titolo</TypoScriptObjPath>
                         </tx_templavoila>
                     </field_titolo>
                     <field_navbar type="array">
                         <tx_templavoila type="array">
                             <title>Navbar</title>
                             <sample_data type="array">
                                 <numIndex index="0">[navbar]</numIndex>
                             </sample_data>
                             <eType>TypoScriptObject</eType>
                             <eType_EXTRA type="array">
                                 <objPath>lib.navbar</objPath>
                             </eType_EXTRA>
 
<TypoScriptObjPath>lib.navbar</TypoScriptObjPath>
                         </tx_templavoila>
                     </field_navbar>
                 </el>
             </field_header>
             <field_left_box type="array">
                 <type>array</type>
                 <tx_templavoila type="array">
                     <title>Box Left</title>
                     <eType>none</eType>
                 </tx_templavoila>
                 <el type="array">
                     <field_titolo_menu type="array">
                         <tx_templavoila type="array">
                             <title>Titolo Menu</title>
                             <sample_data type="array">
                                 <numIndex index="0">[titolo 
menu]</numIndex>
                             </sample_data>
                             <eType>TypoScriptObject</eType>
                             <eType_EXTRA type="array">
                                 <objPath>lib.titolo_menu</objPath>
                             </eType_EXTRA>
 
<TypoScriptObjPath>lib.titolo_menu</TypoScriptObjPath>
                         </tx_templavoila>
                         <TCEforms type="array">
                             <label>Titolo Menu</label>
                         </TCEforms>
                     </field_titolo_menu>
                     <field_menu type="array">
                         <tx_templavoila type="array">
                             <title>Menu</title>
                             <sample_data type="array">
                                 <numIndex index="0">[menu]</numIndex>
                             </sample_data>
                             <eType>TypoScriptObject</eType>
                             <eType_EXTRA type="array">
                                 <objPath>lib.menu</objPath>
                             </eType_EXTRA>
                             <TypoScriptObjPath>lib.menu</TypoScriptObjPath>
                         </tx_templavoila>
                     </field_menu>
                 </el>
             </field_left_box>
             <field_content type="array">
                 <tx_templavoila type="array">
                     <title>Content</title>
                     <sample_data type="array">
                         <numIndex index="0">[content]</numIndex>
                     </sample_data>
                     <eType>ce</eType>
                     <TypoScript>
	10= RECORDS
	10.source.current=1
	10.tables = tt_content
	10.wrap = &lt;!--TYPO3SEARCH_begin--&gt; | &lt;!--TYPO3SEARCH_end--&gt;
                     </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>Content</label>
                 </TCEforms>
             </field_content>
             <field_footer type="array">
                 <tx_templavoila type="array">
                     <title>Footer</title>
                     <sample_data type="array">
                         <numIndex index="0">[footer]</numIndex>
                     </sample_data>
                     <eType>TypoScriptObject</eType>
                     <eType_EXTRA type="array">
                         <objPath>lib.footer</objPath>
                     </eType_EXTRA>
                     <TypoScriptObjPath>lib.footer</TypoScriptObjPath>
                 </tx_templavoila>
             </field_footer>
         </el>
     </ROOT>
</T3DataStructure>



More information about the TYPO3-project-templavoila mailing list