Templates
This is a list with the templates used by the modules provided by the Mason Framework itself, including the modules that use them (or when they are used on MFWork calls), and the variables those modules defined.Se details on how templates work in template system.
form
This are the templates used by $mf->form(...) (see the MFWork API).
form/field/input
This is used for input fields. The default template used name and value variables, but any variable that is defined in the field definition will be given to the template.form/field/longinput
form/field/text
form/field/textarea
This fields are used to show fields of those specific types. What was say to form/field/input apply to these as well.form/field/select/option
This template is used to each option of the select fields. It have the variables value, selected (that is "SELECTED" if the specific value is selected), and label, the label to show to that value.form/field/select
This template will be used to show select fields. It have the variables name and options. options will contain a string of contatenated result of form/field/select/option values.form/field
form/fieldneeded
This templates will be used to show each field on a form. If the needed option of the field is true, the template form/fieldneeded will be used, otherwise the form/field will.This templates have the label, field and comment (that is not used in the original template).
form/extrabutton
This template will be used to create each extrabutton present in the form.form/main
This is the main template for the form. This template have the variables onsubmit (a javascript function to be called before submitting the form), title, formerror (The error message if there is any error on the submitted data), formsid(an internal ID for the form), body, extrabuttons and sendtxt. All those variables (but sendtxt) must be used in identical ways to those used in the default template. Change the design, but not the behaviour.form/result
This template is used to show the result messages to the action executed by the form submitions.invalidhost
This templates should be defined only on the global templates, as it don't have effect on site specifics. It is used when the Mason Framework don't know the host used.listmenu
listmenu/item
This is each item on a listmenu. It have the variables url and label.listmenu/main
This is the main template to the list menus. It have the variables class and menu.loginform
This is the template used by the $mf->get_user() or $mf->user_is(...) unless they are given the showlogin=0 option.It don't get any variable.