Skip to content

Commit

Permalink
Merge pull request #1 from NamelessCoder/doktypes
Browse files Browse the repository at this point in the history
[TASK] Split inclusion of page fields into standard and added doktypes
  • Loading branch information
bjo3rnf committed Apr 14, 2013
2 parents 452927b + ec8c9f4 commit 3798ac9
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions ext_tables.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,20 @@
$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',
$fields,
$doktypes,
$position
);

if (FALSE === empty($additionalDoktypes)) {
$fields = '--div--;LLL:EXT:fluidpages/Resources/Private/Language/locallang.xml:pages.tx_fed_page_layoutselect,' . $fields;
$position = '';
t3lib_extMgm::addToAllTCAtypes(
'pages',
$fields,
$additionalDoktypes,
$position
);
}

0 comments on commit 3798ac9

Please sign in to comment.