supseven / empty_colpos_content
XClass 用于连接到空的 Colpos 布局
v2.0.0
2019-08-03 14:14 UTC
Requires
- typo3/cms-core: ^8.7
Replaces
- empty_colpos_content: v2.0.0
README
这是什么?
如果你有包含没有 Colpos 的列的 BackendLayout,并且你想要在该列中显示信息,只需简单地添加新增加的 Hook。
示例 ext_localconf.php
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['drawColPos'][1542873608]
= \YourNameSpace\YourExtension\Hooks\Backend\PageLayoutView::class .'->render';
使用提供的 Hook 作为示例,并根据你的需要进行修改。
如果没有使用自己的 Hook,则在安装此扩展时将实现一个示例 Hook。
使用扩展配置来使所有或仅管理员用户可见。
示例 BackendLayout 配置
mod {
web_layout {
BackendLayouts {
Default {
title = Home
config {
backend_layout {
colCount = 1
rowCount = 3
rows {
1 {
columns {
1 {
name = Main
colPos = 0
}
}
}
2 {
columns {
1 {
name = Something
emptyColPos = 0
}
}
}
3 {
columns {
1 {
name = Something Else
emptyColPos = 1
}
}
}
}
}
}
}
}
}
}
谢谢!Volker.