Download the PHP package bugfix/patchlayout without Composer
On this page you can find all versions of the php package bugfix/patchlayout. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bugfix/patchlayout
More information about bugfix/patchlayout
Files in bugfix/patchlayout
Package patchlayout
Short Description Patch for Backend Layout
License GPL-2.0-or-later
Homepage https://jambage.com
Informations about the package patchlayout
TYPO3 extension patchlayout
What is does
This extension shall fix the TYPO3 backend error message for a frontend plugin:
colPos: WERT IST NICHT ERLAUBT (“1”)
It seems even to work if the extension gridelements is activated.
The patch for the TYPO3 Backend Layout is inside of this extension.
TYPO3 allows to add new item values of the colPos field in the table tt_content. Any another extension can add its own column values to the selectable columns of the content element. Only be this means it can be avoided that this content element is shown in the front end by means of TYPO3. A special column value can be used by a third party extension to do its own content rendering for it.
Maybe there is another way to avoid that TYPO3 renders a content element. It would be fine if you would tell me how. However this is a proven way which has been working until TYPO3 6.2 by simply adding this TCA override.
example:
// Add the new colPos to the array, only if the ID does not exist...
$colPosOMyExtension = 1212;
$GLOBALS['TCA']['tt_content']['columns']['colPos']['config']['items'][$colPosOMyExtension] = [
'LLL:EXT:myextension/locallang_db.xml:tt_content.colPosOfMyExtension',
$colPosOMyExtension
];
This will add the corresponding text for the column 1212 of extension ‘myextension’ to the column select box of the TYPO3 content element.
'type' => 'select',
'renderType' => 'selectSingle',
alternative solution since TYPO3 9:
pointed out by Hendrik Reimers
A hook exists in order not to show the content inside of a general backend layout column and thus to avoid any error hints about invalid columns in the TYPO3 backend. This makes it possible to define your own column in the TCA for tt_content.