2 namespace TYPO3\CMS\Backend\Form\Container;
44 $table = $this->data[
'tableName'];
45 $row = $this->data[
'databaseRow'];
48 if (empty($this->data[
'fieldListToRender'])) {
49 $options[
'renderType'] =
'fullRecordContainer';
51 $options[
'renderType'] =
'listOfFieldsContainer';
53 $result = $this->nodeFactory->create($options)->render();
55 $childHtml = $result[
'html'];
59 if ($this->data[
'effectivePid'] >= 0) {
60 $permissionsClause = $backendUser->getPagePermsClause(1);
65 $icon =
'<span title="' . htmlspecialchars($recordPath) .
'">' . $iconFactory->getIconForRecord($table, $row,
Icon::SIZE_SMALL)->render() .
'</span>';
68 $tableTitle = $languageService->sL($this->data[
'processedTca'][
'ctrl'][
'title']);
70 if ($this->data[
'command'] ===
'new') {
71 $newOrUid =
' <span class="typo3-TCEforms-newToken">' . $languageService->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.new',
true) .
'</span>';
76 if ($table ===
'pages') {
77 $label = $languageService->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.createNewPage',
true);
78 $pageTitle = sprintf($label, $tableTitle);
80 $label = $languageService->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.createNewRecord',
true);
81 if ($this->data[
'effectivePid'] === 0) {
82 $label = $languageService->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.createNewRecordRootLevel',
true);
84 $pageTitle = sprintf($label, $tableTitle, $pageTitle);
88 $newOrUid =
' <span class="typo3-TCEforms-recUid">[' . htmlspecialchars($row[
'uid']) .
']</span>';
92 if ($table ===
'pages') {
93 $label = $languageService->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.editPage',
true);
94 $pageTitle = sprintf($label, $tableTitle, $recordLabel);
96 $label = $languageService->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.editRecord',
true);
99 if (empty($recordLabel)) {
100 $label = $languageService->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.editRecordNoTitle',
true);
102 if ($this->data[
'effectivePid'] === 0) {
103 $label = $languageService->sL(
'LLL:EXT:lang/locallang_core.xlf:labels.editRecordRootLevel',
true);
105 if (!empty($recordLabel)) {
107 $pageTitle = sprintf($label, $tableTitle, $recordLabel, $pageTitle);
110 $pageTitle = sprintf($label, $tableTitle, $pageTitle);
116 $html[] =
'<h1>' . $pageTitle .
'</h1>';
117 $html[] =
'<div class="typo3-TCEforms">';
118 $html[] = $childHtml;
119 $html[] =
'<div class="help-block text-right">';
120 $html[] = $icon .
' <strong>' . htmlspecialchars($tableTitle) .
'</strong>' .
' ' . $newOrUid;
124 $result[
'html'] = implode(LF, $html);