I have a FE Plugin which uses a FlexForm MyExtFlexForm
which is used to set certain configurations like limit or SourcePage etc..
In my controller action list
I get these settings using $this->settings
. Works fine till now.
Now, I make AJAX calls to action update
and I need to use the same settings which have been set earlier through the FlexForm for the FE plugin on this page. $this->settings does not show anything
.
I checked $GLOBALS['TSFE']->tmpl->setup['plugin']['MyExt.']['settings.']
and none of the settings defined in FlexForm show here.
How do I solve this issue?
EDIT:
My sample Flexform looks like this:
<sheets>
<sDEF>
<ROOT>
<TCEforms>
<sheetTitle>View Settings</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<switchableControllerActions>
<TCEforms>
<label>Select</label>
<config>
<type>select</type>
<items>
<numIndex index="0">
<numIndex index="0">MyFunction</numIndex>
<numIndex index="1">MyExt->list</numIndex>
</numIndex>
</items>
</config>
</TCEforms>
</switchableControllerActions>
<settings.flexform.limit>
<TCEforms>
<label>Number of items to be displayed</label>
<config>
<type>input</type>
<size>10</size>
</config>
</TCEforms>
</settings.flexform.limit>
</el>
</ROOT>
</sDEF>
</sheets>
Then I make an AJAX call to my controller action and print this $this->settings
, shows no settings.