kevinappelt / content-defender
在您的后端布局中定义允许或拒绝的内容元素类型
dev-main
2023-02-20 17:25 UTC
Requires
- php: ^7.4 || ^8.0
- typo3/cms-backend: ^10.4 || ^11.5 || ~12.0 || ~12.1 || ~12.2
- typo3/cms-core: ^10.4 || ^11.5 || ~12.0 || ~12.1 || ~12.2
Requires (Dev)
- phpspec/prophecy: ^1.12.1
- sbuerk/typo3-cmscomposerinstallers-testingframework-bridge: ^0.1.0
- typo3/cms-fluid-styled-content: ^10.4 || ^11.5 || ~12.0 || ~12.1 || ~12.2
- typo3/cms-indexed-search: ^10.4 || ^11.5 || ~12.0 || ~12.1 || ~12.2
- typo3/cms-workspaces: ^10.4 || ^11.5 || ~12.0 || ~12.1 || ~12.2
- typo3/minimal: ^10.4 || ^11.5 || ^12.0
- typo3/testing-framework: ^6.16 || 7.*@dev
Replaces
- typo3-ter/content-defender: dev-main
This package is not auto-updated.
Last update: 2024-10-01 23:06:31 UTC
README
在您的后端布局中定义允许或拒绝的内容元素类型
安装
只需使用Composer或扩展管理器安装此扩展。
用法
- 您只需要调整后端布局的列配置
限制某些内容元素字段
- 要为内容元素字段允许一组有限值,请使用
allowed.field = [逗号分隔的值列表]
示例
columns {
1 {
name = Column with header and textmedia elements
colPos = 3
colspan = 6
allowed {
CType = header, textmedia
}
}
}
columns {
1 {
name = Column with News plugin only
colPos = 3
colspan = 6
allowed {
CType = list
list_type = news_pi1
}
}
}
组合多个内容元素字段
- 此示例允许多个内容元素类型(文本和列表),同时只限制插件类型为
news
。
示例
columns {
1 {
name = A column with restricted list_type and "normal" CType
colPos = 3
colspan = 6
allowed {
CType = textmedia, list
list_type = news_pi1
}
}
}
拒绝某些内容元素类型
- 要从一个内容元素字段中删除一组值,请使用
disallowed.field = [逗号分隔的值列表]
示例
columns {
1 {
name = Column without divider, plain html and table elements
colPos = 3
colspan = 6
disallowed {
CType = div, html, table
}
}
}
columns {
1 {
name = Column with header and list, without News plugin
colPos = 3
colspan = 6
allowed {
CType = header, list
}
disallowed {
list_type = news_pi1
}
}
}
限制内容元素的数量
- 要限制内容元素的数量,请使用
maxitems = [元素数量]
示例
columns {
1 {
name = Column with one textmedia
colPos = 3
colspan = 6
allowed {
CType = textmedia
}
maxitems = 1
}
}
社区
- 感谢b13赞助本扩展的维护
- 感谢Wolfgang Wagner赞助本扩展的维护
- 感谢WACON Internet GmbH赞助本扩展的维护,赞助方式为GitHub赞助
- 感谢Daniel Goerz在他的博客useTYPO3中撰写有关content_defender的文章
- 感谢Marcus Schwemer在他的博客TYPO3worx中撰写有关content_defender的文章