maths / moodle-qtype_stack

Stack question type for Moodle
GNU General Public License v3.0
138 stars 147 forks source link

Proposal: New question block adapt #975

Open m-r-k opened 1 year ago

m-r-k commented 1 year ago

I propose to add a new question block for showing and hiding parts (e.g. in the question text) with a press of a button somewhere else.

See also https://stack-assessment.org/CaseStudies/2019/Adaptive/

sangwinc commented 1 year ago

Great idea @m-r-k, the examples you showed me are really interesting. The new blocks system make this reasonable to add as well!

sangwinc commented 1 month ago

Thanks to @Razeghpour for prompting me to bring the branch iss975 uptodate with the dev branch. We've had a look this evening, and the code in the iss975 "works", so we need some examples of use, and test cases before we merge this back into dev for the next release!

Razeghpour commented 1 month ago

Its not clear how to hide an adapt block from the beginning. @m-r-k How does your block do this?

Razeghpour commented 1 month ago

I have two ideas

  1. New block [[adaptforce show_id="task2" hide_id="task1"]] [[/adaptforce]] which will execute whenever it appears on the page. E.g. a PRT could contain this to hide/show the adapt blocks.
  2. New block [[adaptdelay show_id="task2" hide_id="task1" delay="3s"]] [[/adaptdelay]] which will execute whenever it appears on the page, with a time delay.
m-r-k commented 1 month ago

Its not clear how to hide an adapt block from the beginning. @m-r-k How does your block do this?

We already implemented a block adaptauto