Closed (works as designed)
Project:
Paragraphs
Version:
8.x-1.12
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2020 at 10:14 UTC
Updated:
6 Aug 2024 at 13:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
Harish kumharFor Ex: Accordion
maybe it will help you.
Thanks.
Comment #3
dineshreddymathuku commentedhi @selinav here is the solution and check this link once it's more helpful
https://www.drupal.org/project/uswds_paragraphs/issues/2895878
Create 2 new paragraph types:
- Accordion: Contains any number of references to Accordion Item paragraphs (see below). Also contains a checkbox for allowing multiple items to be expanded at once. Also contains a checkbox for setting the first item to start expanded.
- Accordion Item: Contains any number of references to other paragraph
thanks
Comment #4
tfranz commentedAttached is my custom module with (at least for me) a working accordion for paragraph as a starting point for your own development. It does the following on install:
1. Create two paragraph-types "accordion" and "accordion-item"
2. Create reference-field from "accordion" to "accordion-item" with title- & body-field
3. Template for the accordion-type (the "accordion formatter")
4. Attach libraries (js & css) for simple functionality
After install you can create a paragraph type "Accordion" (not "Accordion Item").
Next step could be to attach jQuery UI Accordion or something like that for some smooth animations.
Comment #5
selinav commentedThank you for your help.
Comment #6
calbasiJust use this module:
https://www.drupal.org/project/paragraphs_jquery_ui_accordion
Comment #7
smustgrave commentedQuestion appears to have been answered