Moodle Form Elements

Moodle Form Elements

од Michael Hughes -
Број на одговори: 0
Слика од Core developers Слика од Particularly helpful Moodlers Слика од Plugin developers
Am I right in thinking that templates for forms library controls can *only* be defined as part of the template?

There is no provision to write a custom form element as part of a plugin that has it's rendering template in the plugin?

My reading of the $OUTPUT mform_element function appears to suggest that the form element name is hard coded in to the form 'core_form/element-*'

We've got a custom control that we use on an mForm that I'm trying to sort out for 3.2 and it it doesn't pick up the basic form layout (i.e. label on left, control on right).


Просек на рејтинзи: -