unikka / neos-slick
Plugin for the Neos CMS that provides a slick slider content element
Fund package maintenance!
markusguenther
Patreon
Installs: 6 903
Dependents: 0
Suggesters: 0
Security: 0
Stars: 9
Watchers: 2
Forks: 6
Open Issues: 7
Language:JavaScript
Type:neos-plugin
Requires
- ext-json: *
- carbon/condition: ^2.0
- neos/flow: *
- neos/neos: ^7.0 || ^8.0
- dev-master
- v4.1.0
- v4.0.3
- v4.0.2
- v4.0.1
- v4.0.0
- v3.5.2
- v3.5.1
- v3.5.0
- v3.4.1
- v3.4.0
- v3.3.2
- v3.3.1
- v3.3.0
- v3.2.0
- v3.1.8
- v3.1.7
- v3.1.6
- v3.1.5
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1.0
- v3.0.1
- v3.0.0
- v3.0.0-alpha-1
- v2.0.20
- v2.0.19
- v2.0.18
- v2.0.17
- v2.0.16
- v2.0.15
- v2.0.14
- v2.0.13
- v2.0.12
- v2.0.11
- v2.0.10
- v2.0.9
- v2.0.8
- v2.0.7
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0.0
- v1.5.0
- v1.4.0
- v1.3.2
- v1.3.1
- v1.3.0
- v1.2.0
- v1.1.1
- v1.1.0
- v1.0.0
- dev-dependabot/npm_and_yarn/follow-redirects-1.15.4
- dev-dependabot/npm_and_yarn/browserify-sign-4.2.2
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/babel/traverse-7.23.2
- dev-feature/neos-8-compatibility
- dev-dependabot/npm_and_yarn/tar-4.4.15
- dev-dependabot/npm_and_yarn/webpack-5.48.0
- dev-dependabot/npm_and_yarn/babel/preset-env-7.14.9
- dev-dependabot/npm_and_yarn/webpack-5.47.0
- dev-dependabot/npm_and_yarn/postcss-8.3.6
- dev-dependabot/npm_and_yarn/mini-css-extract-plugin-1.6.2
- dev-dependabot/npm_and_yarn/semantic-release-17.4.4
- dev-dependabot/npm_and_yarn/babel/plugin-proposal-class-properties-7.14.5
- dev-dependabot/npm_and_yarn/webpack-cli-4.7.2
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/commitizen-4.2.4
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/add-v2-config-file
- dev-dependabot/npm_and_yarn/ssri-6.0.2
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/sass-loader-10.1.1
- dev-dependabot/npm_and_yarn/webpack-cli/migrate-1.1.2
- dev-tasks/upgrade-dependencies
- dev-feature/neos-7-compatibility
- dev-dependabot/npm_and_yarn/babel/preset-env-7.10.4
- dev-greenkeeper/terser-webpack-plugin-3.0.2
- dev-greenkeeper/terser-webpack-plugin-3.0.1
- dev-greenkeeper/terser-webpack-plugin-3.0.0
- dev-snyk-fix-9d93c8f9be5d67f00853b8c0af7b2c56
- dev-greenkeeper/style-loader-1.2.1
- dev-greenkeeper/style-loader-1.2.0
- dev-greenkeeper/style-loader-pin-1.1.3
- dev-greenkeeper/style-loader-1.1.4
- dev-snyk-fix-e9d4d71d98de3181e49936a55973e663
- dev-develop
- dev-greenkeeper/file-loader-6.0.0
- dev-dependabot/npm_and_yarn/babel/core-7.8.6
- dev-task/adjust-slide-nodetype
- dev-feature/adds-danish-language
- dev-release-3.1
- dev-feature/lazyloading
- dev-feature/content-mixin
- dev-Update-dependencies
This package is auto-updated.
Last update: 2024-10-11 04:05:32 UTC
README
Slick Content Element for Neos CMS
This is a ready-to-use implementation of the JavaScript package slick.
Installation
Most of the time you have to make small adjustments to a package (e.g., the configuration in Settings.yaml). Because of that, it is important to add the corresponding package to the composer manifest in your theme package. Mostly this is the site package 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 unikka/neos-slick --no-update
The --no-update command prevents 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. Your desired package is now installed correctly.
Usage
This package uses background images as slides. If you want to use a fixed height for the slider you can use the following CSS to override the defaults:
.slick-slide { min-height: <your-slide-height>; }
Disabling / enabling features
The Slide and the Slider element have a few mixins, which you can use to enable/disable and to add/remove a feature.
Example
If you want to disable the autoplay option in the backend, you can do this:
'Unikka.Slick:Content.Slider': superTypes: 'Unikka.Slick:Mixin.Autoplay': false
Unikka.Slick:Content.Slider
Mixins
Unikka.Slick:Content.Slide
Mixins
Fade option
The fade options is disabled by default, because if you enable fade, the "slides to show" option isn't working. But you can simply enable it like this:
'Unikka.Slick:Content.Slider': superTypes: 'Unikka.Slick:Mixin.Fade': true 'Unikka.Slick:Mixin.SlidesToShow': false
Configuration
Unikka: Slick: # include the theme css file from slick theme: true backend: # disables autoplay in backend disableAutoplay: true # breakpoints for the responsive tab responsive: sm: 576px md: 768px lg: 992px xl: 1200px
Contribution
We'd love you to contribute to neos-slick. We try to make it as easy as possible. We are using semantic versioning to have more time to concentrate on important stuff instead of struggling in the dependency or release hell.
Therefore the first rule is to follow the eslint commit message guideline.
It is really easy if you always commit via yarn commit
. Commitizen will guide you.
All PRs will be merged into the master branch. Travis and semantic release will check the commit messages and start building a new release when the analysis of the latest commits will trigger that.
If you have questions just ping us on Twitter or Github.
About
The package is based on the Noerdisch/Slick
package. We thank the Noerdisch team for
all the efforts. Part of the development has been sponsored by the Danske Folkekirken, we are proud that the Folkekirken is using the slider package and supports open source software.
License
The MIT License (MIT). Please see License File for more information.