貼文的作者是 Joseph Rézeau

Core developers的相片 Plugin developers的相片 Testers的相片 Translators的相片

The list of activities that are available in H5P "complex" contents, such as Interactive Book, Course Presentation, etc. is limited by the choice made by the H5P deciders. You cannot change it (unless you know your way around H5P contents and you have good knowledge of programming and you know what you are doing, at your own risk).

評比平均分數:Useful (1)
Core developers的相片 Plugin developers的相片 Testers的相片 Translators的相片
Thanks Al
If I use 'float' (instead of 'text') then I don't have to use $mform->setType('xxx', PARAM_INT);
That's one line less, so a bit better...

EDIT.- In the whole of Moodle edit forms, there are only 2 instances of $mform->addElement('float'...):
in question\type\calculatedsimple\edit_calculatedsimple_form.php
and question\type\edit_question_form.php
Core developers的相片 Plugin developers的相片 Testers的相片 Translators的相片
Thanks for your help, Marcus. It looks like just what I needed.
It's a pity that there is not a "numerical" option for $mform->addElement() in Moodle!

Now I need to upgrade my plugin DB to add a field. I hope I will be able to do it with the help here. If not, I might ask for help again.😉