Moodle Form Elements

Moodle Form Elements

oleh Michael Hughes -
Jumlah balasan: 0
Gambar dari Core developers Gambar dari Particularly helpful Moodlers Gambar dari 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).


Rata-rata penilaian: -