carbon/backenddocument
Composer 安装命令:
composer require carbon/backenddocument
包简介
A small Fusion prototype to create nice only-backend documents
README 文档
README
Carbon.BackendDocument Package for Neos CMS
Two small Fusion prototypes to create nice only-backend documents.
| Version | Neos | Maintained |
|---|---|---|
| 1.* | 3.3.* - 5.* | ✗ |
| 2.* | 4.* - 5.* | ✗ |
| 3.* | 7.* | ✗ |
| 4.* | 4.3.* - 5.* | ✓ |
| 5.* | 7.* - 8.* | ✓ |
Installation
Carbon.BackendDocument is available via packagist.
Run the following command in your site package
composer require --no-update carbon/backenddocument
Then run composer update in your project root.
Usage of Carbon.BackendDocument:Document
| Property | Default value | Description |
|---|---|---|
singleline |
true |
If you want to have a non-centric design, set this to false |
content |
null |
The content to show |
style |
null |
Add additional style to the document |
title |
${q(node).property('title')} |
The title of the document |
namespace |
carbon-backend |
The namespace for the css class |
javascripts |
null |
Add javscript to the document. Please provide also a script tag. |
frontendRedirect.node |
${q(documentNode).parent().get(0)} |
The node where the user get redirected in the frontend. |
frontendRedirect.statusCode |
301 |
The status code for the redirection |
cssVariables |
null |
Add your own CSS custom properties |
documentStyle |
Please take a look at the source code | Modify/add/remove styles for the backend docment |
Usage of Carbon.BackendDocument:Editable
If you use this prototype on a regular document, the editor has the default styling from Neos.Neos:Editable.
If you use it on Carbon.BackendDocument:Document, the editor gets the look of an inspector field.
If a value gets updated, a Javascript event with the name Carbon.BackendDocument:Editable gets fired. This event has the following details:
element: the input/textarea/select fieldproperty: the name of the propertyvalue: The value of the property
| Property | Default value | Description |
|---|---|---|
node |
node |
A node instance that should be used to read the property. |
property |
null |
The name of the property which should be accessed |
type |
input |
Set the type of editor. For possible values look at the next table |
options |
Neos.Fusion:DataStructure |
Used for type select and radio |
optionGroups |
Neos.Fusion:DataStructure |
Used for type select |
label |
null |
Prepend a label |
placeholder |
null |
Overwrite the placeholder from the nodetype definition. This can also be dynamic |
class |
null |
Add your own CSS class if you want to override some stylings |
style |
null |
Add your own style to the root element |
includeCSS |
true |
Inlcude the styling |
inspectorStyle |
true |
If set to true and used under Carbon.BackendDocument:Document, the styling will adapt to the inspector style |
fallback |
null |
Fallback for the frontend if no value is given |
editable |
true |
Switch if the value should be editable |
Be aware! If one element on a document has set includeCSS to true, this get's included for the whole document.
Types
| Value | Description |
|---|---|
input |
No linebreaks, no tags, but autogrowing textfield |
select |
Select values, uses options and optionGroups DataStructure |
radio |
Select values, uses options DataStructure |
block |
Default editor, block style |
inline |
Default editor, inline style |
carbon/backenddocument 适用场景与选型建议
carbon/backenddocument 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 17.14k 次下载、GitHub Stars 达 3, 最近一次更新时间为 2018 年 10 月 09 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「flow」 「backend」 「helper」 「Neos」 「carbon」 「FUSION」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 carbon/backenddocument 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 carbon/backenddocument 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 carbon/backenddocument 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Put images nicley in a row
Datetime helpers for timezone handling
Create link to static resources with cache-breaking segment based on md5 of the file
This bundle offers a simple backend explanation form field (inputType).
Preview of settings in footer of tt_content element in page module.
Library with classes to help you do batch.
统计信息
- 总下载量: 17.14k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 14
- 依赖项目数: 3
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2018-10-09