h5p / h5p-course-presentation

MIT License
54 stars 129 forks source link

Feature request: Accordions #12

Open thorprichard opened 9 years ago

thorprichard commented 9 years ago

Would greatly enjoy seeing this new interaction added to the Course Presentation. (Or more broadly, documentation on how to add others.) Thanks!

falcon-git commented 9 years ago

Thank you for reporting. I've noted your feature request.

When it comes to the doc the reason it doesn't exist is that it will be outdated quite soon. We're going to make a "contracts" system where Course Presentation will require one or more contracts and all content types that implements these contracts will automatically be added to the Course Presentation toolbar. Admins will probably be allowed to arrange and remove content types from the toolbar.

Right now you would have to:

  1. Add the content type to Course Presentation's semantics.json
  2. Add the content type to Course Presentation Editor's library.json
  3. Add an icon for the content type into the icon font.
  4. Add css to the Course Presentation Editor for choosing the correct icon font

Might be a step or two more required that I've forgotten, but I think you should get pretty far with the above steps and we would be happy to consider PRs for this :)

thorprichard commented 9 years ago

+100 for the contracts idea. Makes perfect sense. Glad to see that happen.

As for the interim approach, we'll tinker with that and see what happens. :-) Thank you!

falcon-git commented 9 years ago

:)