Module Forms
Modules use the Form_builder class to create the form used to create and edit module information. You can modify a model's form_fields() method to customize the form.
Trigger CSS Classes
There are some special CSS classes that will trigger extra functionality with certain fields:
- add_edit - the add_edit CSS class allows you to add and/or edit another module directly in the module's form. This class works on select fields.
- asset_select [pdf, css, js] - the asset_select CSS class allows you input asset file names into your form fields. You can specify an optional second class to specify the specific asset folder (.e.g. 'class' => 'add_edit pdf'). The default asset folder is the images folder. This class works with text input fields.
- multifile - the multifile CSS class allows you to add multiple files at a time. Works on file upload fields.
- wysiwyg - the wysiwyg CSS class will trigger the CKEditor to be used instead of markItUp! on the field.
Conversely, there are a couple CSS classes that are used to remove certain functionality.
- no_editor - the no_editor CSS class is used when you don't want to apply a MarkitUp editor to your text field.
- no_combo - the no_combo CSS class is used when you don't want the combo box used and instead want a regular multi-select field.