accordions.rst 855 B

1234567891011121314151617181920212223242526
  1. Accordions
  2. ==========
  3. A representation of an accordion or other collapsible content.
  4. Usage
  5. -----
  6. 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.
  7. Fields
  8. ------
  9. Accordion
  10. ~~~~~~~~~
  11. **Name**: A unique name for your accordion. It can be anything, it is just used as a personal reference to easily tell them apart.
  12. Panel
  13. ~~~~~
  14. To add a panel to your accordion, click the "Add Panels" button.
  15. **Name**: A name for this panel, will be displayed at the top of the panel
  16. **Custom CSS class**: If you need to add a specific css class for this panel, add it here.
  17. **Custom ID**: If you need to add a specific ID for this panel, add it here.
  18. **Content**: A streamfield that contains the content blocks for the panel.