Skip to content

Commit

Permalink
[TASK] Add flex form sheet for additional doktypes
Browse files Browse the repository at this point in the history
  • Loading branch information
bjo3rnf committed Apr 14, 2013
1 parent 3fff2e2 commit 452927b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidpages']['setup'] = unserialize($_EXTCONF);
$doktypes = '0,1,4';
$additionalDoktypes = $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidpages']['setup']['doktypes'];
$fields = 'tx_fed_page_controller_action,tx_fed_page_controller_action_sub,tx_fed_page_flexform';
$position = 'before:layout';
$additionalDoktypes = trim($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidpages']['setup']['doktypes'], ',');
if (FALSE === empty($additionalDoktypes)) {
$doktypes .= ',' . $additionalDoktypes;
$fields = '--div--;LLL:EXT:fluidpages/Resources/Private/Language/locallang.xml:pages.tx_fed_page_layoutselect,' . $fields;
$position = '';
}
t3lib_extMgm::addToAllTCAtypes(
'pages',
'tx_fed_page_controller_action,tx_fed_page_controller_action_sub,tx_fed_page_flexform',
$fields,
$doktypes,
'before:layout'
$position
);

0 comments on commit 452927b

Please sign in to comment.