[TYPO3-templavoila] More on my dual element problem...

Martin-Pierre Frenette typo3 at frenette.qc.ca
Sun Feb 19 22:42:24 CET 2006


I realize I had not provided a lot on information on my problem, so here is
a little more debug info.

I am using TemplaVoila 0.4.0 and Typo3 3.8.0.

The problem seems to be with the page variable loading.

My page has 2 content element sections :

field_content which has content element #32 assigned
field_content which has content elements #36 and #34 assigned.

Here is the tx_templavoila fields of the page record passed to the
templavoila main_page function
----------------------------------------------------------------------------
-------------
[tx_templavoila_ds] => 1 
[tx_templavoila_to] => 1 
[tx_templavoila_next_ds] => 0 
[tx_templavoila_next_to] => 0
[tx_templavoila_flex] => <?xml version="1.0" encoding="iso-8859-1"
standalone="yes" ?>
<T3FlexForms>
    <data type="array">
        <sDEF type="array">
            <lDEF type="array">
                <field_content type="array">
                    <vDEF>32</vDEF>
                </field_content>
                <field_banner type="array">
                    <vDEF>36,34</vDEF>
                </field_banner>
            </lDEF>
        </sDEF>
    </data>
</T3FlexForms>
----------------------------------------------------------------------------
-------------

All is well.. let's continue.

In renderelement, my datastruct is well retrieved from resolveSheetDefInDS 

----------------------------------------------------------------------------
---------------
list ($dataStruct, $sheet, $singleSheet) =
t3lib_div::resolveSheetDefInDS($DS,$renderSheet);
----------------------------------------------------------------------------
---------------
$dataStruct["ROOT"]["el"]["field_content"] is :

-------------------------------------------
                    [field_content] => Array
                        (
                            [tx_templavoila] => Array
                                (
                                    [title] => Main Content Area
                                    [description] => Pick the HTML element
in the template where you want to place the main content of the site.
                                    [sample_data] => Array
                                        (
                                            [0] => Lorem ipsum dolor sit
amet, consectetuer adipiscing elit. Pellentesque porta erat vitae nisl. In
hac habitasse platea dictumst. Aliquam ac urna. Morbi magna mauris, semper
ut, varius in, convallis vitae, nulla. Proin massa lorem, mollis eget,
rutrum vitae, commodo id, risus. Curabitur scelerisque risus eget odio.
Proin laoreet blandit elit. Aenean varius, sapien laoreet dapibus volutpat,
risus lorem ornare wisi, lobortis venenatis nisl augue sed purus. Nam
suscipit viverra justo. Suspendisse tincidunt. Nullam vel quam.
                                        )

                                    [eType] => ce
                                    [tags] =>
table:outer,td:inner,div:inner,p,h1,h2,h3,h4,h5
                                    [TypoScript] => 
	10= RECORDS
	10.source.current=1
	10.tables = tt_content
							
                                )

                            [TCEforms] => Array
                                (
                                    [config] => Array
                                        (
                                            [type] => group
                                            [internal_type] => db
                                            [allowed] => tt_content
                                            [size] => 5
                                            [maxitems] => 200
                                            [minitems] => 0
                                            [multiple] => 1
                                            [show_thumbs] => 1
                                        )

                                    [label] => Main Content Area
                                )

                        )
----------------------------------------------------------------------------
-------
$dataStruct["ROOT"]["el"]["field_banner"] is :
----------------------------------------------------
                    [field_banner] => Array
                        (
                            [tx_templavoila] => Array
                                (
                                    [title] => Top Banner
                                    [description] => Pick the HTML container
element where you want the top banner rotator to be placed.
                                    [sample_data] => Array
                                        (
                                            [0] => <img
src="./images/main_pic.jpg" alt="main graphic" />
                                        )

                                    [eType] => ce
                                    [eType_EXTRA] => Array
                                        (
                                            [objPath] => lib.banner
                                        )

                                    [TypoScriptObjPath] => lib.banner
                                    [TypoScript] => 
	10= RECORDS
	10.source.current=1
	10.tables = tt_content
							
                                )

                            [TCEforms] => Array
                                (
                                    [label] => Top Banner
                                    [config] => Array
                                        (
                                            [type] => group
                                            [internal_type] => db
                                            [allowed] => tt_content
                                            [size] => 5
                                            [maxitems] => 200
                                            [minitems] => 0
                                            [multiple] => 1
                                            [show_thumbs] => 1
                                        )

                                )

                        )
----------------------------------------------------------------------------
-


Still In Render Element, $dataValues after :
-----------------------------------------
$dataValues = is_array($data['data']) ? $data['data'][$sheet][$lKey] : '';
-----------------------------------------

Is : 

Array ( [field_content] => Array ( [vDEF] => 32 ) [field_banner] => Array (
[vDEF] => 36,34 ) )




And yet, after


$this->processDataValues($dataValues,$dataStruct['ROOT']['el'],$TOlocalProc,
$vKey);

$dataValues is only filled for the field_content, not the field_banner (see
below )

What I find odd, is that $TOlocalProc is empty !

PS : $singlesheet is true,

---------------------------------------------------
Array
(
    [field_content] => Array
        (
            [vDEF] => 
	<!--  CONTENT ELEMENT, uid:32/html [begin] -->
		<a name="32"></a><div class="section">
		<!--  Raw HTML content: [begin] -->Hello
	<!--  CONTENT ELEMENT, uid:32/html [end] -->
		
        )

    [field_banner] => Array
        (
            [vDEF] => 
        )
)
---------------------------------------------------
Does this ring a bell to anyone ?






More information about the TYPO3-project-templavoila mailing list