Note that there are some explanatory texts on larger screens.

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

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload