carbon/firstelement
最新稳定版本:2.1.0
Composer 安装命令:
composer require carbon/firstelement
包简介
Get a boolean value returned if a content element is the first element in a ContentCollection or not
README 文档
README
Carbon.FirstElement Package for Neos CMS
Get a boolean value returned if a content element is the first element in a ContentCollection or not. Great for automated headlines (h1 or h2)
Installation
Carbon.FirstElement is available via packagist. Add "carbon/firstelement" : "^1.0"
to the require section of your composer.json or run composer require carbon/firstelement.
Usage
If you add the super type Carbon.FirstElement:Mixin to a node type definition, you activate the FlowQuery in the prototype Carbon.FirstElement:Mixin. Every Neos.Neos:Content and Neos.Neos:ContentComponent get automatically the property isFirstElement. If you want to extend another prototype you can do it like this:
prototype(Your.Package:Content) { isFirstElement = Carbon.FirstElement:Mixin }
License
Licensed under MIT, see LICENSE
统计信息
- 总下载量: 5.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2018-10-09