A pattern based on Plone Mockup that enable a slick slider on a selected div.
http://kenwheeler.github.io/slick/
Documentation
Installation
Install redturtle.patterns.slider by adding it to your buildout:
[buildout]
...
eggs =
redturtle.patterns.slider
and then running bin/buildout
After that, you need to install it in your Plone site from the control panel.
Pattern usage
This pattern follows slick’s standards, so you need a div with a list of items.
To enable the pattern in a div, you just need to add ‘pat-slider’ class to it:
<div class="pat-slider">
...
</div>
There is a set of default parameters for the slider:
dots: true
slidesToShow: 4
slidesToScroll: 4
arrows: true
lazyLoad: ‘ondemand’
If you want to change something, you only need to add an additional configuration (mockup-style) to your div like this:
<div class="pat-slider"
data-pat-slider="dots: false; arrows: false">
...
</div>
JS Development and bundling
If you need to develop this product’s javascripts or styles, you need to compile the code for the resource registry bundle.
First of all, you need to install dependencies listed in package.json file in the root of this package:
npm install
After that, you can use two different scripts:
- `npm run watch`: the default task, that listen files changes with `watch` and re-build resources and bundles automatically - `npm run compile`: to manually compile all resources and bundles
Contribute
Issue Tracker: https://github.com/RedTurtle/redturtle.patterns.slider/issues
Source Code: https://github.com/RedTurtle/redturtle.patterns.slider
License
The project is licensed under the GPLv2.
Contributors
Luca Bellenghi, info@redturtle.it
Changelog
0.1.3 (2025-10-27)
Plone 6 compatibility. Use 0.x versions for Plone < 6. [cekk]
Unistall registry entries properly. [cekk]
0.1.2 (2018-06-11)
Published on pypi [cekk]
0.1.1 (2017-12-21)
Improved slider js [nzambello]
0.1.0 (2017-09-18)
Initial release. [cekk]
Release files for redturtle.patterns.slider 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| redturtle_patterns_slider-1.0.0.tar.gz | 310.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| redturtle_patterns_slider-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 627.4 kB
Release files / redturtle_patterns_slider-1.0.0.tar.gz
| Download URL | redturtle_patterns_slider-1.0.0.tar.gz |
|---|---|
| Size | 310.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74c2a12f64664173b2f590258141d6f4e0700a0a7b43d929e9521bb87dcb1f0e
|
|
BLAKE2b-256 checksum How to use checksums |
997172f5b35eb3d7bd666225f1ac02ddf2901235752132dc6cb37908a20f214d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / redturtle_patterns_slider-1.0.0-py3-none-any.whl
| Download URL | redturtle_patterns_slider-1.0.0-py3-none-any.whl |
|---|---|
| Size | 317.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7cb7efe27fb2ab7e57d5681a0579f7362c7e1994e5920200e160bdf6328359f
|
|
BLAKE2b-256 checksum How to use checksums |
27c21470111f7c94987b22f349d23cd9a6d444f49b99d36609a9f2e886ac69a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|