[TYPO3-mvc] Flexform / settings in listAction
Nicole Cordes
cordes at cps-it.de
Thu Oct 13 20:24:28 CEST 2011
Hi Alisha,
I think you have to use settings.flexform.filter in FlexForms like this:
<T3DataStructure>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>Title</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<settings.flexform.filter>
<TCEforms>
<label>Auswahl eingrenzen</label>
<config>
<type>select</type>
<item>
<numIndex index="0" type="array">
<numIndex index="0">alle</numIndex>
<numIndex index="1">0</numIndex>
</numIndex>
</item>
<foreign_table>tx_ahdancecourses_domain_model_filter</foreign_table>
</config>
</TCEforms>
</settings.flexform.filter>
Then you can access those settings by $this->settings['flexform']['filter']
Cheers,
Nicole
Nicole Cordes
Senior-Entwickler online
cordes at cps-it.de
www.cps-it.de
T 030 275 95 371
M 0176 - 2016 0234
CPS-IT bei Facebook und bei Twitter
-----Ursprüngliche Nachricht-----
Von: typo3-project-typo3v4mvc-bounces at lists.typo3.org
[mailto:typo3-project-typo3v4mvc-bounces at lists.typo3.org] Im Auftrag von
Alisha
Gesendet: Donnerstag, 13. Oktober 2011 16:55
An: typo3-project-typo3v4mvc at lists.typo3.org
Betreff: [TYPO3-mvc] Flexform / settings in listAction
Hi,
I would like filter my list by categories. The categorie is defined in the
Plugin / Flexform.
I read that I simply can access with
$filter = $this->settings['filter'];
in a controller-class.
but the settings in listAction are empty:
listAction() {
$filter = $this->settings['filter'];
t3lib_div::debug($this->settings);
...
xml should be correct:
<T3DataStructure>
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>Title</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<settings.filter>
<TCEforms>
<label>Auswahl eingrenzen</label>
<config>
<type>select</type>
<item>
<numIndex index="0" type="array">
<numIndex index="0">alle</numIndex>
<numIndex index="1">0</numIndex>
</numIndex>
</item>
<foreign_table>tx_ahdancecourses_domain_model_filter</foreign_table>
</config>
</TCEforms>
</settings.filter>
.....
Does anyone have an idea?
regards,
Alisha
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list