Search by

biffbangpow / silverstripe-accordion-element

TimBBP

Collapsible content accordion for Silverstripe

Package info

github.com/BiffBangPow/silverstripe-accordion-element

Type:silverstripe-vendormodule

pkg:composer/biffbangpow/silverstripe-accordion-element

Statistics

Installs: 210

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v4.0.0 2026-10-13 11:22 UTC

This package is auto-updated.

Last update: 2026-10-13 11:34:02 UTC


README

A simple content accordion for Silverstripe elemental

By default, this uses the HTML5 <details> tag for the accordion, providing native support and accessibility out of the box. The tag supports styling and emits event listeners on interaction

https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details

FAQ structured data

When Mark up as FAQ for search engines is enabled, the accordion emits FAQPage structured data. If dorsetdigital/silverstripe-schema-manager is installed and a current page is available, the accordion registers its questions with Schema Manager instead. Schema Manager includes them in its page-level JSON-LD graph in the document head; no inline FAQ script is added.

Schema Manager is an optional integration. Without it, the accordion continues to output its existing standalone FAQPage JSON-LD markup. Only enable the FAQ setting for genuine questions and answers. With a Schema Manager version supporting multiple FAQ sections, several accordions can contribute questions to the same page-level FAQPage entity. Without Schema Manager, retain the one-FAQ-accordion-per-page restriction.