2 namespace TYPO3\CMS\Backend\Form\Container;
45 parent::__construct($nodeFactory, $data);
63 if (empty($fieldArray[0])) {
64 throw new \RuntimeException(
'Field must not be empty', 1426448465);
67 'fieldName' => $fieldArray[0],
68 'fieldLabel' => $fieldArray[1] ?: null,
69 'paletteName' => $fieldArray[2] ?: null,
81 protected function renderTabMenu(array $menuItems, $domId, $defaultTabIndex = 1)
83 $templatePathAndFileName =
'EXT:backend/Resources/Private/Templates/DocumentTemplate/Tabs.html';
86 $view->assignMultiple(array(
88 'items' => $menuItems,
89 'defaultTabIndex' => $defaultTabIndex,
90 'wrapContent' =>
false,
91 'storeLastActiveTab' =>
true,
93 return $view->render();
106 if ($config[
'config'][
'type'] ===
'group' && ($config[
'config'][
'internal_type'] ===
'file' || $config[
'config'][
'internal_type'] ===
'file_reference')) {
108 if ($config[
'config'][
'internal_type'] ===
'file_reference') {
109 $config[
'config'][
'uploadfolder'] =
'';
111 $table =
'tt_content';
118 foreach ($itemArray as $imgRead) {
119 $imgParts = explode(
'|', $imgRead);
120 $imgPath = rawurldecode($imgParts[0]);
122 $rowCopy[$field] = $imgPath;
125 $fileInformation = pathinfo($imgPath);
126 $title = $fileInformation[
'basename'] . ($absFilePath && @is_file($absFilePath))
128 :
' - FILE NOT FOUND!';
129 $fileIcon =
'<span title="' . htmlspecialchars($title) .
'">' . $iconFactory->getIconForFileExtension($fileInformation[
'extension'],
Icon::SIZE_SMALL)->render() .
'</span>';
131 '<span class="text-nowrap">' .
132 BackendUtility::thumbCode(
138 $config[
'config'][
'uploadfolder'], 0,
' align="middle"'
144 return implode(
'<br />', $imgs);
146 return nl2br(htmlspecialchars($value));