[TYPO3-templavoila] More on my dual element problem... : FIXED !
Martin-Pierre Frenette
typo3 at frenette.qc.ca
Sun Feb 19 23:20:56 CET 2006
I found it !
The 'TypoScriptObjPath' property was set !!!
For field_banner !!!
So, I edited manually the DataStructure XML and removed the :
<TypoScriptObjPath>lib.banner</TypoScriptObjPath>
Tag, which gets added everytime I edit the DS from the backend !
-----Original Message-----
From: typo3-project-templavoila-bounces at lists.netfielders.de
[mailto:typo3-project-templavoila-bounces at lists.netfielders.de] On Behalf Of
Martin-Pierre Frenette
Sent: Sunday, February 19, 2006 4:42 PM
To: typo3-project-templavoila at lists.netfielders.de
Subject: [TYPO3-templavoila] More on my dual element problem...
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 ?
_______________________________________________
TYPO3-project-templavoila mailing list
TYPO3-project-templavoila at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-templavoi
la
More information about the TYPO3-project-templavoila
mailing list