itplusx/headless-container
Composer 安装命令:
composer require itplusx/headless-container
包简介
Container Content Elements (EXT:container) json output for EXT:headless
README 文档
README
This TYPO3 extension makes it possible to use EXT:container together with EXT:headless.
Installation
Installation with composer (recommended)
$ composer require itplusx/headless-container
Installation with the TYPO3 Extension Manager
see: Extension Management
Requirements and compatibility
| Requirement | v1 & v2 | v3 |
|---|---|---|
| PHP | >= 8.1 | >= 8.1 |
| TYPO3 | 12.4 & 13.4 | 12.4 & 13.4 |
| Headless | 4 | 4 |
| Container | 2 - 3.1.1 | >= 3.1.2 |
Usage
- Include TypoScript (as described by the TypoScript Reference) or just add the Site Set to your Site Configuration (as described by the Site sets Reference)
- Register your custom container element (as described by EXT:container)
- Define TypoScript ...
(assuming you CType isb13-2cols-with-header-container)- ... for simple container elements:
tt_content.b13-2cols-with-header-container =< lib.container - ... for container elements with header TCA fields:
tt_content.b13-2cols-with-header-container =< lib.containerWithHeader - ... for container elements with custom TCA fields:
(see EXT:headless docs for further info)tt_content.b13-2cols-with-header-container =< lib.container tt_content.b13-2cols-with-header-container.fields.content.fields { myCustomField = TEXT myCustomField.field = myCustomTcaField }
- ... for simple container elements:
- That's all! You should now see JSON output for your custom container element!
Example json output
{
"id": 2,
"type": "b13-2cols-with-header-container",
"colPos": 0,
"categories": "",
"appearance": {
"layout": "default",
"frameClass": "default",
"spaceBefore": "",
"spaceAfter": ""
},
"content": {
"header": "Container Header",
"subheader": "Container Subheader",
"headerLayout": 0,
"headerPosition": "",
"headerLink": "",
"myCustomField": "myCustomValue",
"items": [
{
"config": {
"name": "header",
"colPos": 200
},
"contentElements": [
{
"id": 3,
"type": "text",
"colPos": 200,
"categories": "",
"appearance": {...},
"content": {...}
}
]
},
{
"config": {
"name": "left side",
"colPos": 201
},
"contentElements": [
{
"id": 4,
"type": "text",
"colPos": 201,
"categories": "",
"appearance": {...},
"content": {...}
},
{
"id": 9,
"type": "text",
"colPos": 201,
"categories": "",
"appearance": {...},
"content": {...}
}
]
},
{
"config": {
"name": "right side",
"colPos": 202
},
"contentElements": [
{
"id": 5,
"type": "text",
"colPos": 202,
"categories": "",
"appearance": {...},
"content": {...}
}
]
}
]
}
}
Contribution
Any help on this project is very welcome! May it be as code contribution or just an idea for improvement. But we would like to ask you to follow some rules:
- Issues:
When adding issues please always describe the bug/feature/task as detailed as possible. Only providing a title is not enough. Please use issue templates. - Commits:
Our team is following the Conventional Commits. We would like ask you stick to these rules whenever you want to contribute. - Pull Requests:
Before you submit a PR please create an issue first and link it to the pull request or at least add a PR description with detailed information about what this PR does. Otherwise we are not able to decide if this PR is worth going into the main branch.
itplusx/headless-container 适用场景与选型建议
itplusx/headless-container 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 18.09k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「container」 「extension」 「headless」 「typo3」 「TYPO3 CMS」 「Container Content Elements」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 itplusx/headless-container 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 itplusx/headless-container 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 itplusx/headless-container 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This extension provides integration with solr to output content from TYPO3 in JSON format.
A custom URL rule class for Yii 2 which allows to create translated URL rules
Instrument headless chrome/chromium instances from php5.6
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
统计信息
- 总下载量: 18.09k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-04