carbon/primarycontent

Last activity on 12 December 2020
  • 855
composer require carbon/primarycontent

Extended implementation from PrimaryContent

3.1.0

Extended implementation from PrimaryContent

Version
3.1.0
Type
neos-carbon
Release Date
11.12.2020 20:45:44
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
MIT
  • #flow
  • #helper
  • #content
  • #neos
  • #carbon
  • #fusion
eda9aacf0b4a90a992446669374ca5b727559aa1

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

Carbon.PrimaryContent Package for Neos CMS

Version Neos
1.* 3.*
3.* 4.*
>= 3.0.3 4.* - 7.*

Carbon.PrimaryContent:PrimaryContent

This is an own implementation from PrimaryContent. If a document node has a prototype with a .MainContent or a .PlainContent suffix this prototype will be used as content. Otherwise, the ContentCollection will be rendered. It is also possible to pass your own content.

Carbon.PrimaryContent:ClassArray

Raw Array of the css classes for the Carbon.PrimaryContent:PrimaryContent. Can be used also for the body tag.

Carbon.PrimaryContent:NodeTypeName

Convert a name from a nodetype to a hyphen-case-string. Make use of Carbon.PrimaryContent:RemoveVendors.

Carbon.PrimaryContent:RemoveVendors

If you want to remove some of the vendor names from the NodeTypeName, this helper is for you. Per default it will read the setting Carbon.PrimaryContent.removeVendors

Example:

prototype(Carbon.PrimaryContent:NodeTypeName) {
    @process.removeVendorName = Carbon.PrimaryContent:RemoveVendors {
        vendors = ${['Vendor', 'Foo', 'Bar']}
    }
}

Installation

Most of the time you have to make small adjustments to a package (e.g. configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer from your theme package. Mostly this is the site packages located under Packages/Sites/. To install it correctly go to your theme package (e.g.Packages/Sites/Foo.Bar) and run following command:

composer require carbon/primarycontent --no-update

The --no-update command prevent the automatic update of the dependencies. After the package was added to your theme composer.json, go back to the root of the Neos installation and run composer update. Et voilà! Your desired package is now installed correctly.

To install the package under Neos 3.* you have to enter

composer require "carbon/primarycontent:^1.0" --no-update

License

Licensed under MIT, see LICENSE

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