quellenform/t3x-dynamic-layouts
Composer 安装命令:
composer require quellenform/t3x-dynamic-layouts
包简介
Adds dynamic layouts to content elements.
关键字:
README 文档
README
Dynamic Layouts
TYPO3 CMS Extension dynamic_layouts
This extension makes the "Layout" field dynamic for content elements and also adds a field for layout styles.
What does it do?
The EXT:fluid_styled_content and EXT:bootstrap_package extensions have consistently ignored this field up to now, and their templates are hardcoded to always use only the Default template.
This extension aims to change this situation and make this field dynamic by, on the one hand, making the references to the used layout flexible, and on the other hand, allowing flexible values to be used via PageTS and TypoScript.
How to use it?
This extension adds a minor modification to the existing templates (overwriting them), which is why you must apply the same change to your custom templates.
Old:
<f:layout name="Default" />
New:
<f:layout name="{layoutName}" />
The variable {layoutName} is populated via TypoScript (DataProcessor) with the layout name you have selected, allowing you to use custom layouts.
Additionally, the field value of “layout_style” is translated into the variable {layoutStyle} in the same way, according to your TypoScript configuration, allowing you to create further custom setups.
PageTS
In PageTS, you can now define your own elements for the “Layout” field. You can also add custom layout styles for each layout.
Something like this:
# PageTS
TCEFORM.tt_content {
layout {
disableNoMatchingValueElement = 1
altLabels {
1 = Hero
2 = Modal
3 = Card
}
addItems {
4 = Citation
}
# [BUGFIX:1432] https://github.com/benjaminkott/bootstrap_package/issues/1432
#removeItems >
#types.uploads >
}
}
# Use 'itemsProcFunc' if you want to add/override TCA items of the field 'layout_style' (!)
TCEFORM.tt_content.layout_style.itemsProcFunc {
addItems {
1 {
1 = Style 1
}
1 {
1 = Style 1
2 = Style 2
}
3 {
1 = Style 1
2 = Style 2
3 = Style 3
}
4 {
1 = Style 1
}
}
# Modify label (modify the label of the second style of layout 3)
#altLabels.3.2 = Override Label
# Remove items (remove all style for layout 1 and 2, but only first style of layout 3)
#removeItems = 1, 2, 3.1
}
TypoScript Setup
You can then use TypoScript to specify which layouts to use and which names should be used to override the selected layout styles.
lib.contentElement {
layoutRootPaths.1 = EXT:my_custom_extension/Resources/Private/Layouts/
}
plugin.tx_dynamic_content {
layout {
1 = Hero
2 = Modal
3 = Card
4 = Citation
}
layout_style {
# Hero
1 {
0 = frame-layout-hero
1 = frame-layout-maxhero
}
# Modal
2 {
1 = modal fade
2 = modal modal-btn-centered
}
# Card
3 {
1 = card card-layout1
2 = card card-layout2
3 = card card-layout3
}
# Citation
4 {
0 = citation
1 = citation hero
}
}
}
quellenform/t3x-dynamic-layouts 适用场景与选型建议
quellenform/t3x-dynamic-layouts 是一款 基于 HTML 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 04 月 15 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「extension」 「typo3」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 quellenform/t3x-dynamic-layouts 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 quellenform/t3x-dynamic-layouts 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 quellenform/t3x-dynamic-layouts 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
Set Links with a specific language parameter
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
UI Kit 3 Extension for Yii2
Adds more BBCode
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 26
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-04-15