bugfix/patchlayout 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bugfix/patchlayout

最新稳定版本:v0.3.0

Composer 安装命令:

composer require bugfix/patchlayout

包简介

Patch for Backend Layout

README 文档

README

What is does

This extension shall fix the TYPO3 backend error message for a frontend plugin:

colPos: VALUE IS NOT ALLOWED (“1”) 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.

Feature #82213

统计信息

  • 总下载量: 726
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 1

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2019-09-27