carbon/firstelement

Last activity on 12 December 2020
  • 1617
composer require carbon/firstelement

Get a boolean value returned if a content element is the first element in a ContentCollection or not

1.1.0

Get a boolean value returned if a content element is the first element in a ContentCollection or not

Version
1.1.0
Type
neos-carbon
Release Date
09.12.2020 18:02:30
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT
  • #flow
  • #helper
  • #neos
  • #carbon
  • #fusion
c35a7e176be326990e36412565b1b9dea1186b3a

Latest Stable Version Total Downloads License GitHub forks GitHub stars GitHub watchers

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

The content of the readme is provided by Github
The same vendor provides 23 package(s).