Skip to content

Instantly share code, notes, and snippets.

@smichaelsen
Created September 30, 2015 07:01
Show Gist options
  • Save smichaelsen/d0677bb6f1bb0d38db8b to your computer and use it in GitHub Desktop.
Save smichaelsen/d0677bb6f1bb0d38db8b to your computer and use it in GitHub Desktop.
<?php
namespace Smichaelsen\MyExt\Backend\View;
use FluidTYPO3\Flux\Service\ContentService;
class BackendLayoutView extends \TYPO3\CMS\Backend\View\BackendLayoutView {
/**
* Flux doesn't work well with TYPO3 backend layouts. The colPos item that is added in ext_tables.php is discarded by TYPO3's
* BackendLayoutView. That's why we re-add it here.
*
* @param array $parameters
*/
public function colPosListItemProcFunc(array $parameters) {
parent::colPosListItemProcFunc($parameters);
$parameters['items'][] = [
$this->getLanguageService()->sL('LLL:EXT:flux/Resources/Private/Language/locallang.xlf:tt_content.tx_flux_container'),
ContentService::COLPOS_FLUXCONTENT
];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment