Line 21: |
Line 21: |
| }} | | }} |
| == Purpose of the Mod == | | == Purpose of the Mod == |
− | To support the use of configurable "Field Buttons" by other mods, by installing | + | To support the use of "Field Buttons" by other mods. Field buttons are one-character buttons that are attached to HTML form fields ''by other mods'' and that do simple editing tasks like clearing a field or restoring its initial value. The Field Buttons mod does not define field buttons in forms; it just enables field buttons by installing |
| * A Javascript library that is used by various TNG programs ''only if this mod has been installed'', and | | * A Javascript library that is used by various TNG programs ''only if this mod has been installed'', and |
| * A mod option that control whether each type of field button is active. | | * A mod option that control whether each type of field button is active. |
Line 28: |
Line 28: |
| |} | | |} |
| | | |
− | This mod is needed only if a TNG site administrator, | + | This mod is needed only if a TNG site administrator |
− | * Installs at least one mod that places Field Buttons in HTML forms, and | + | * Installs at least one mod that places field buttons in an HTML form, and |
− | * Wants to see Field Buttons in forms. | + | * Wants to see field buttons. |
| That is, if this mod has not been installed, no errors will occur; Field Buttons that have been defined by various other mods will simply not appear. | | That is, if this mod has not been installed, no errors will occur; Field Buttons that have been defined by various other mods will simply not appear. |
| | | |
| The buttons are configurable in that | | The buttons are configurable in that |
| * The one-character labels for the field buttons are defined in cust_text.php, and can be changed for different languages. | | * The one-character labels for the field buttons are defined in cust_text.php, and can be changed for different languages. |
− | ** The button labels change be changed - even given multple-character labels - by overriding the button definition string ($admtext['rrfb-buttonlabels']) in the English cust_text.php files
| + | * Any of the four types of field buttons can be disabled through the mod's option at '''Admin >> Setup >> General Settings''', in the new subform titled '''[[User:Robinrichm#The_Inner_Mod_Menu|Robin's Mods]]'''. |
− | * Any of the four types of field buttons can be disabled through the mod's option at '''Admin >> Setup >> General Settings''', in the new subform titled '''[[https://tng.lythgoes.net/wiki/index.php?title=User:Robinrichm#The_Inner_Mod_Menu|Robin's Mods]]'''. | |
| | | |
| ==Field Buttons== | | ==Field Buttons== |