Warning
This add-on is meant to be used in combination with the volto-light-theme. If you plan to use this add-on with plain Volto you will have to write your own styles for it. You can use the existing ones via manual import like this import "@kitconcept/volto-carousel/theme/_main.scss"
or as reference.
version | Volto version | VLT version |
---|---|---|
1.x.x | >=Volto 18.20.0 | >= 7.0.0-alpha.1 |
The @kitconcept/volto-carousel-block
allows editors to add a carousel to a Volto page.
The allowLoop
setting controls whether looping can be enabled for individual blocks across the site.
-
When
allowLoop
is set totrue
: Each block will display a checkbox that allows you to enable or disable looping for that specific block individually. -
When
allowLoop
is set to false (or omitted): Looping is completely disabled across the entire site. No loop checkboxes will be shown, and blocks cannot be looped.
Make sure to set allowLoop
to true
if you want to allow users to toggle looping behavior for specific blocks like this:
config.blocks.blocksConfig.carousel = {
...config.blocks.blocksConfig.carousel,
allowLoop: true,
};
To install your project, you must choose the method appropriate to your version of Volto.
Add @kitconcept/volto-carousel-block
to your package.json
:
"dependencies": {
"@kitconcept/volto-carousel-block": "*"
}
Add @kitconcept/volto-carousel-block
to your volto.config.js
:
const addons = ['@kitconcept/volto-carousel-block'];
Create a new Volto project (you can skip this step if you already have one):
npm install -g yo @plone/generator-volto
yo @plone/volto my-volto-project --addon @kitconcept/volto-carousel-block
cd my-volto-project
Add @kitconcept/volto-carousel-block
to your package.json:
"addons": [
"@kitconcept/volto-carousel-block"
],
"dependencies": {
"@kitconcept/volto-carousel-block": "*"
}
Download and install the new add-on by running:
yarn install
Start volto with:
yarn start
Visit http://localhost:3000/ in a browser, login, and check the awesome new features.
The development of this add-on is done in isolation using a new approach using pnpm workspaces and latest mrs-developer
and other Volto core improvements.
For this reason, it only works with pnpm and Volto 18 (currently in alpha).
Run make help
to list the available commands.
help Show this help
install Installs the add-on in a development environment
start Starts Volto, allowing reloading of the add-on during development
build Build a production bundle for distribution of the project with the add-on
i18n Sync i18n
ci-i18n Check if i18n is not synced
format Format codebase
lint Lint, or catch and remove problems, in code base
release Release the add-on on npmjs.org
release-dry-run Dry-run the release of the add-on on npmjs.org
test Run unit tests
ci-test Run unit tests in CI
backend-docker-start Starts a Docker-based backend for development
storybook-start Start Storybook server on port 6006
storybook-build Build Storybook
acceptance-frontend-dev-start Start acceptance frontend in development mode
acceptance-frontend-prod-start Start acceptance frontend in production mode
acceptance-backend-start Start backend acceptance server
ci-acceptance-backend-start Start backend acceptance server in headless mode for CI
acceptance-test Start Cypress in interactive mode
ci-acceptance-test Run cypress tests in headless mode for CI
Install package requirements.
make install
Start the backend.
make backend-docker-start
In a separate terminal session, start the frontend.
make start
Run ESlint, Prettier, and Stylelint in analyze mode.
make lint
Run ESlint, Prettier, and Stylelint in fix mode.
make format
Extract the i18n messages to locales.
make i18n
Run unit tests.
make test
Run each of these steps in separate terminal sessions.
In the first session, start the frontend in development mode.
make acceptance-frontend-dev-start
In the second session, start the backend acceptance server.
make acceptance-backend-start
In the third session, start the Cypress interactive test runner.
make acceptance-test
The project is licensed under the MIT license.
Generated using Cookieplone (0.7.1) and cookiecutter-plone (4ef2c3b) on 2025-03-17 10:52:54.565233. A special thanks to all contributors and supporters!