Needs review
Project:
Views Bootstrap
Version:
5.4.x-dev
Component:
Accordion
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
14 Sep 2020 at 22:22 UTC
Updated:
19 Apr 2023 at 02:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
dmdewey commentedComment #3
chegor commentedThe patch is working with 8.x-4.3.
But not sure if it's a working idea to use the grouping field as "Panel title field".
Comment #4
odai jbr commentedA re-roll for the patch. version 8.4.x-dev
Comment #5
shelaneComment #6
teknocat commentedI think there's definitely a use case for wanting to use the grouping field as the panel title instead of a panel title field.
While that could be done by overriding the template (which I will do in conjunction with this patch since I have that specific use case), it would be ideal if the options form allowed you to choose which way you wanted it to be displayed - the groups as accordions, or the rows within the groups as accordions.
In my case, I want the groups to be accordions. I could also use some other view format, such as unformatted list or something, and then write a template for that that uses bootstrap accordions. It would just be nice if it could all be done easily with this module.
Comment #7
teknocat commentedActually after making that comment and then digging a bit deeper, I realised it's not quite that simple as the parent view template would have to take care of the accordions in the case of wanting each group as an accordion. I'm therefore not sure if this can be achieved with this module. I think it would be necessary to use some other formatted like unformatted list and override all the appropriate templates needed to make that function as accordions by group.
Comment #8
stevenlafl commented@teknocat
I am one such individual. For example, let's say I want to have the panel title by "Year" but it's grouped, so that articles which were published on that year show up in a list inside the panel.
This gets me to that goal. However we need to incorporate it with some new settings for Views.
Comment #9
bunthorne commentedCan this also be added to the 5.x version?