View Grouping ignores "Use the group header as the Accordion header" flag

Created on 14 August 2023, 11 months ago

Problem/Motivation

When I have multiple grouping fields in a view, the module applies the accordion to the highest numbered grouping field, ignoring the checkbox for "Use the group header as the Accordion header".

Steps to reproduce

Create view with multiple fields. Title, Body, Taxonomy terms, URL.
Group by title.
Check the box for use the group header as the accordion header.
The view will show the accordion link on the title.
Then group by body.
The view will show the accordion link on the body.
Then group by taxonomy.
The view will show the accordion link on the taxonomy.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ed2908

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

Comments & Activities

  • Issue created by @ed2908
  • πŸ‡­πŸ‡·Croatia portulaca

    I can confirm it behaves like that, it's impossible to use the Views Accordion when there is more than one grouping criterion.

    In D7 there was the addon module that implements more than one accordion level https://www.drupal.org/project/views_nested_accordion β†’ but the new version isn't working.

    This bug isn't about nested accordions though, it's about not being able to use field grouping in accordion content (only one grouping, the one for accordion headers, works as expected).

Production build 0.69.0 2024