Collapse option

Created on 28 September 2018, about 6 years ago
Updated 11 August 2023, over 1 year ago

Hello,

On D7 we have a module to add a 'collapse' behavior on the facets.
But, on D8 we don't have this module. Is there a easy solution to add this collapse behavior on my facets ?

Thanks.

💬 Support request
Status

Active

Version

2.0

Component

Code

Created by

🇫🇷France kumkum29

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇩🇰Denmark ressa Copenhagen

    There is the Drupal 7 module https://www.drupal.org/project/facetapi_collapsible .

    Perhaps it can be ported to Drupal 10, or integrated directly into the Facet module?

  • 🇩🇰Denmark ressa Copenhagen

    I tried Collapsiblock , and it works pretty well, thanks @p4trizio!

    The only thing I would like, would be for a "Disallow collapsing, if facet is in use"-option -- or "Indicate if facet is in use", but it's not that critical.

  • 🇩🇰Denmark ressa Copenhagen

    It actually looks like the "Disallow collapsing, if facet is in use"-feature is already there, but instead as a "Always show active facet", which also works well:

    1. Enable a facet in a few blocks
    2. Collapse all blocks
    3. Reload, and see that the blocks with an active facet get automatically expanded

    Pretty cool.

Production build 0.71.5 2024