choose controller action with flexform (switchableControllerActions)

27. April 2016

0 Kommentare

<?xml version="1.0" encoding="UTF-8"?>
<T3DataStructure>
<sheets>
<general>
<ROOT>
<TCEforms>
<sheetTitle>XXX</sheetTitle>
</TCEforms>
<type>array</type>
<el>
<switchableControllerActions>
<TCEforms>
<label>Views</label>
<onChange>reload</onChange>
<config>
<type>select</type>
<items type="array">
<numIndex index="1" type="array">
<numIndex index="0">First view</numIndex>
<numIndex index="1">Controller->action;Controller->actionFromExtLocalconf1;Controller->actionFromExtLocalconf2; </numIndex>
</numIndex>
<numIndex index="2" type="array">
<numIndex index="0">Second view</numIndex>
<numIndex index="1">Controller->action1</numIndex>
</numIndex>
</items>
</config>
</TCEforms>
</switchableControllerActions>
</el>
</ROOT>
</general>
</sheets>
</T3DataStructure>

configuration from ext_localconf.php will be overwritten! If you need it, put it like line20 after “;”

¬ geschrieben von 7masod7 in extensions, TYPO3

Flexform for extbase extension

26. April 2016

0 Kommentare

$extensionName = strtolower(\TYPO3\CMS\Core\Utility\GeneralUtility::underscoredToUpperCamelCase($_EXTKEY));
$pluginName = strtolower('Pluginname');
$pluginSignature = $extensionName.'_'.$pluginName;

/**
 * Disable non needed fields in tt_content
 */
 $TCA['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key,pages,recursive';

 $TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';

 \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:'.$_EXTKEY . '/Configuration/FlexForms/flexform.xml');
  

¬ geschrieben von 7masod7 in extensions, TYPO3

Theme von BenediktRB • Powered by Wordpress • Abonniere den RSS Feed