[TYPO3-mvc] Flexforms dont get merged in $this->settings
Maik Kempe
mkempe at seibert-media.net
Tue Nov 24 00:49:06 CET 2009
Hi,
i am currently writing my first frontend plugin with extbase. In my flex forms i have a select field which gets 'filled' with products via API call (via 'itemsProcFunc') . Then the user can select a product which gets 'published / assembled' on the current page. Today i checked out the current trunk. Now the selected product ('product') dont appear in '$this->settings'. I also added a text field via flex forms - the same behavior.
FlexForm:
<foo>
<TCEforms>
<label>Foo</label>
<config>
<type>input</type>
<size>5</size>
<max>5</max>
<eval>int</eval>
<default>0</default>
</config>
</TCEforms>
</foo>
<product>
<TCEforms>
<label>LLL:EXT:product_import_voila/Resources/Private/Language/FlexForms/ProductSimply.xml:product</label>
<config>
<type>select</type>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0">LLL:EXT:product_import_voila/Resources/Private/Language/FlexForms/ProductSimply.xml:product.choice</numIndex>
<numIndex index="1"></numIndex>
</numIndex>
</items>
<itemsProcFunc>tx_productimportvoila_helper->productSelect</itemsProcFunc>
</config>
</TCEforms>
</product>
ext_tables.php:
...
$TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; // 'pi_flexform' will be rendered when plugin is shown
t3lib_extMgm::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/ProductSimply.xml'); // Add FlexForm XML config file
Only 'settings' via TS appear:
TS:
plugin.tx_productimportvoila {
settings {
api {
domain = api.gartentechnik.com
username = foo
password = bar
methods {
productList = /api/product_list?brand=Herkules
}
}
}
}
Controller:
error_log(print_r($this->settings)); -> Array ( [api] => Array ( [domain] => api.gartentechnik.com [username] => foo [password] => bar [methods] => Array ( [productList] => /api/product_list?brand=Herkules ) ) )
Any ideas? Some things changed? Is this a bug?
Thanks!
Maik Kempe
//SEIBERT/MEDIA/TECHNOLOGIES
--
//SEIBERT/MEDIA GmbH / Rheingau Palais
Söhnleinstraße 8 / 65201 Wiesbaden
GF: J.Seibert und M.Seibert / AG
Wiesbaden: HRB11502
T.+49-611-20570-49 / F.+49-611-20570-70
mkempe at seibert-media.net
www.seibert-media.net / http://blog.seibert-media.net
--
Consulting / Technologies / Design
More information about the TYPO3-project-typo3v4mvc
mailing list