| @@ 1182-1195 (lines=14) @@ | ||
| 1179 | // SAVE / VIEW button: |
|
| 1180 | if ($this->viewId && !$this->noView && $this->getNewIconMode($this->firstEl['table'], 'saveDocView')) { |
|
| 1181 | $pagesTSconfig = BackendUtility::getPagesTSconfig($this->pageinfo['uid']); |
|
| 1182 | if (isset($pagesTSconfig['TCEMAIN.']['preview.']['disableButtonForDokType'])) { |
|
| 1183 | $excludeDokTypes = GeneralUtility::intExplode( |
|
| 1184 | ',', |
|
| 1185 | $pagesTSconfig['TCEMAIN.']['preview.']['disableButtonForDokType'], |
|
| 1186 | true |
|
| 1187 | ); |
|
| 1188 | } else { |
|
| 1189 | // exclude sysfolders, spacers and recycler by default |
|
| 1190 | $excludeDokTypes = [ |
|
| 1191 | PageRepository::DOKTYPE_RECYCLER, |
|
| 1192 | PageRepository::DOKTYPE_SYSFOLDER, |
|
| 1193 | PageRepository::DOKTYPE_SPACER |
|
| 1194 | ]; |
|
| 1195 | } |
|
| 1196 | if (!in_array((int)$this->pageinfo['doktype'], $excludeDokTypes, true) |
|
| 1197 | || isset($pagesTSconfig['TCEMAIN.']['preview.'][$this->firstEl['table'] . '.']['previewPageId']) |
|
| 1198 | ) { |
|
| @@ 368-381 (lines=14) @@ | ||
| 365 | if (is_array($this->pageinfo) && $this->pageinfo['uid']) { |
|
| 366 | // View |
|
| 367 | $pagesTSconfig = BackendUtility::getPagesTSconfig($this->pageinfo['uid']); |
|
| 368 | if (isset($pagesTSconfig['TCEMAIN.']['preview.']['disableButtonForDokType'])) { |
|
| 369 | $excludeDokTypes = GeneralUtility::intExplode( |
|
| 370 | ',', |
|
| 371 | $pagesTSconfig['TCEMAIN.']['preview.']['disableButtonForDokType'], |
|
| 372 | true |
|
| 373 | ); |
|
| 374 | } else { |
|
| 375 | // exclude sysfolders and recycler by default |
|
| 376 | $excludeDokTypes = [ |
|
| 377 | PageRepository::DOKTYPE_RECYCLER, |
|
| 378 | PageRepository::DOKTYPE_SYSFOLDER, |
|
| 379 | PageRepository::DOKTYPE_SPACER |
|
| 380 | ]; |
|
| 381 | } |
|
| 382 | if (!in_array((int)$this->pageinfo['doktype'], $excludeDokTypes, true)) { |
|
| 383 | $viewButton = $buttonBar->makeLinkButton() |
|
| 384 | ->setHref('#') |
|