Metadata-Version: 2.4
Name: collective.expandcollapse.tile
Version: 2.0.0
Summary: Add ability to expand/collapse a tile with a specified CSS class
Home-page: https://pypi.python.org/pypi/collective.expandcollapse.tile
Author: RedTurtle Technology
Author-email: sviluppoplone@redturtle.it
License: GPL version 2
Keywords: Python Plone
Classifier: Environment :: Web Environment
Classifier: Framework :: Plone
Classifier: Framework :: Plone :: 5.0
Classifier: Framework :: Plone :: 5.1
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: GNU General Public License v2 (GPLv2)
License-File: LICENSE.GPL
License-File: LICENSE.rst
Requires-Dist: plone.api>=1.8.4
Requires-Dist: Products.GenericSetup>=1.8.2
Requires-Dist: setuptools
Requires-Dist: z3c.jbot
Provides-Extra: test
Requires-Dist: plone.app.testing; extra == "test"
Requires-Dist: plone.testing>=5.0.0; extra == "test"
Requires-Dist: plone.app.contenttypes; extra == "test"
Requires-Dist: plone.app.robotframework[debug]; extra == "test"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-dist
Dynamic: summary

.. This README is meant for consumption by humans and pypi. Pypi can render rst files so please do not use Sphinx features.
   If you want to learn more about writing documentation, please check out: http://docs.plone.org/about/documentation_styleguide.html
   This text does not appear on pypi or github. It is a comment.

==============================
collective.expandcollapse.tile
==============================

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 <https://github.com/collective/collective.tiles.advancedstatic>`_ or `collective.tiles.collection <https://github.com/collective/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
----------

- Issue Tracker: https://github.com/collective/collective.expandcollapse.tile/issues
- Source Code: https://github.com/collective/collective.expandcollapse.tile


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 <http://www.regione.emilia-romagna.it/>`_;

Regione Emilia Romagna supports the `PloneGov initiative <http://www.plonegov.it/>`_.


Authors
-------

This product was developed by RedTurtle Technology team.

.. image:: https://www.redturtle.it/redturtle_banner.png
   :alt: RedTurtle Technology Site
   :target: https://www.redturtle.it/


Contributors
============

- RedTurtle Technology, sviluppoplone@redturtle.it


Changelog
=========


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]
