2
0

accordions.rst 882 B

123456789101112131415161718192021222324252627
  1. Accordions
  2. ==========
  3. A representation of an accordion or other collapsible content.
  4. See :ref:`accordion-block`
  5. Usage
  6. -----
  7. You define your Accordions in the Snippets > Accordion section of the admin. Once defined, any page with a body streamfield can show that Accordion by selecting it with a Accordion block.
  8. Fields
  9. ------
  10. Accordion
  11. ~~~~~~~~~
  12. **Name**: A unique name for your accordion. It can be anything, it is just used as a personal reference to easily tell them apart.
  13. Panel
  14. ~~~~~
  15. To add a panel to your accordion, click the "Add Panels" button.
  16. **Name**: A name for this panel, will be displayed at the top of the panel
  17. **Custom CSS class**: If you need to add a specific css class for this panel, add it here.
  18. **Custom ID**: If you need to add a specific ID for this panel, add it here.
  19. **Content**: A streamfield that contains the content blocks for the panel.