A question came to me via email. At first it’s not relevant to H5P but it is…
I was wondering if you could help me with something in Pressbooks. I am not sure if you are familiar with it. There is a way in Pressbooks to have expandable/collapsible sections but I haven’t been able to figure out how to do it.
Here is a website that uses it (see blue sections called Activity): 22. Phrases, Cadences, and Harmonic Function – Fundamentals, Function, and Form
I reached out to the author of the link I sent and he was extremely helpful. However, it involved a lot of computer coding. I am not familiar with computing coding, so I was hoping Pressbooks has a secret easy way to do it.
I know of no secrets!
The question is relevant, because one way you can achieve this effect in Pressbooks without manipulating HTML is with H5P (it is built in) using the Accordion content type.
This came up in my work with BCcampus for the H5P Kitchen (with good answers provided in twitter from Steel Wagstaff) and there is a no code way to do this using just HTML.
It even works here in this platform! I use it here to share a related post where I compared the H5P and HTML methods
Show/Hide A Kitchen Secret
I wrote a post Accordions, Collapsibles, Drawers, Disclosures (H5P Kitchen) comparing the two approaches to creating content revealed via H5P Accordions and the HTML only Summary / Details tags
Let’s see if I can even tuck an H5P embed of an H5P Accordion inside this HTML tag constructed one. In the old days we might say this was very “meta”…
The HTML method does require entering “code” but it can be done in the Pressbooks editor using the Text/HTML editor tab. There are some fancier things you can add to the effect with custom CSS, but the basic structure can be done with the simple tags (warning, I love writing HTML, others may differ)
This is another example among many where there are multiple approaches to solutions in not only H5P but almost any web technology.
I feel strongly about the open format we are doing here because often (a) more than one person has the same question so there is value to have it public and (b) it is highly likely others can answer it better or add additional suggestions.
I am excited for more questions this week.