Implementing mobile support to "label" alike course modules

Implementing mobile support to "label" alike course modules

by Valery Fremaux -
Number of replies: 1
Picture of Plugin developers

Hi Mobile Team,

I would like to make the mod/customlabels compliant with mobile application. the "mobile" extension can be built, but customlabel uses a special behaviour very alike the standad "label" module, i.e, expressing content in the course layout.

My tryouts did not have success with such a specificity.

Any help possible ?

Thanks

Valery

Average of ratings: -
In reply to Valery Fremaux

Re: Implementing mobile support to "label" alike course modules

by Naomi Quirke -
Hi Valery,
I've been working with something similar, and the standard documentation has been recently updated, you might find something there now:
https://docs.moodle.org/dev/Mobile_support_for_plugins#Implement_a_module_similar_to_mod_label
I was able to get information on the course page with the help of this. Your handler should have a line similar to the following:
'coursepagemethod' => 'name of your php function returning the template to be displayed',