Javascript plugin that enable expand/collapse behavior in tiles.
Usage
To enable expand/collapse feature in a tile, you only need to add a specific CSS class to it.
Some tiles like collective.tiles.advancedstatic or collective.tiles.collection have a field in their configuration that allows to add custom CSS classes.
Possible classes are:
collapsible-desktop: enable expand/collapse feature for Desktop displays (width > 991px)
collapsible: enable expand/collapse for small screens only (width < 991px)
In addition to these two mutually exclusive classes, you can also add the class accordion so when one of them is opened, the others will be closed.
Installation
Install collective.expandcollapse.tile by adding it to your buildout:
[buildout]
...
eggs =
collective.expandcollapse.tile
and then running bin/buildout
After that, you need to install the product “Expand/Collapse tile” in your Plone site.
Development
All resources are compiled with grunt.
First of all, you need to setup your development environment inside project root:
> npm install
Then, you need to activate grunt in watch-mode:
> npm run develop
After that, you can edit expand_collapse.js or styles.scss files and resources will be automatically compiled in dist folder.
You can also force compilation with this command:
> npm run compile
Contribute
License
The project is licensed under the GPLv2.
Dependencies
This product has been tested on Plone 5.1
Credits
Developed with the support of Regione Emilia Romagna;
Regione Emilia Romagna supports the PloneGov initiative.
2.0.0 (2026-03-26)
Plone 6 compatibility. [cekk]
1.0.1 (2021-04-06)
Add accordion mode [nzambello]
1.0.0 (2020-03-06)
Initial release. [cekk]
Release files for collective.expandcollapse.tile 2.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 | |
|---|---|---|---|
| collective_expandcollapse_tile-2.0.0.tar.gz | 56.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| collective_expandcollapse_tile-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 84.0 kB
Release files / collective_expandcollapse_tile-2.0.0.tar.gz
| Download URL | collective_expandcollapse_tile-2.0.0.tar.gz |
|---|---|
| Size | 56.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adaca1cd492a342a8dc7bfbeb8649a067e1b5bab96f3cd74550f24ffa2c382d7
|
|
BLAKE2b-256 checksum How to use checksums |
d0abb41781e599a7082525d971a5baf98ca875330c72fec94144d9c4930f8ef2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|
Release files / collective_expandcollapse_tile-2.0.0-py3-none-any.whl
| Download URL | collective_expandcollapse_tile-2.0.0-py3-none-any.whl |
|---|---|
| Size | 27.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8b61d1100cda9285725db6f55c3beda8517f8c4a83207a01d496a337370ca16
|
|
BLAKE2b-256 checksum How to use checksums |
6914d332429e7a1d3479d56140cc841e8e2b69764dff9784609c0f10e810a632
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.11
|