typo3 plugin: how to pass a parameter? -
i've got plugin in typo3 database query limit of 5 example. looking solution choose limit in backend of typo3 (select box,radio buttons,...) , pass parameter - have idea?
thanks volker
i guess using extension based on extbase! configuration called flexforms , can implemented easily
as example, take @ 1 of extensions:
configuration/tca/overrides/tt_content.php place such code
$globals['tca']['tt_content']['types']['list']['subtypes_excludelist']['mailchimp_registration'] = 'recursive,select_key,pages'; $globals['tca']['tt_content']['types']['list']['subtypes_addlist']['mailchimp_registration'] = 'pi_flexform'; \typo3\cms\core\utility\extensionmanagementutility::addpiflexformvalue('mailchimp_registration', 'file:ext:mailchimp/configuration/flexforms/flexform_mailchimp.xml');
of course need adopt needs
flexform_mailchimp.xml
add flexform file holds configuration:
<t3datastructure> <meta> <langdisable>1</langdisable> </meta> <sheets> <sdef> <root> <tceforms> <sheettitle>lll:ext:mailchimp/resources/private/language/locallang.xml:flexform.title</sheettitle> </tceforms> <type>array</type> <el> <settings.fo> <tceforms> <label>lll:ext:mailchimp/resources/private/language/locallang.xml:flexform.useajax</label> <config> <type>input</type> <default>0</default> </config> </tceforms> </settings.fo> </el> </root> </sdef> </sheets> </t3datastructure>
as setting named settings.fo
, can value in controller using $this->settings['fo']
.
Comments
Post a Comment