Xataface Radio Button Module
The Xataface radio module adds a "radio buttons" widget for use in forms. Options are generated from a vocabulary.
- Copy the summary directory into your modules directory ie. modules/radioButton :
e.g. if Your application is installed at path/to/app, then you would copy files widget.php and radioButton.php to the path/to/app/modules/radioButton directory.
- Add the following to the [_modules] section of your app's conf.ini file :
[_modules] modules_radioButton=modules/radioButton/radioButton.php
To configure a field to use the radio widget, just set its fields.ini file widget:type directive to "radioButton" and set the vocabulary directive. See the vocabulary wiki page for more information about Xataface vocabulary.
Option : You should also set a facultative separator between the radio buttons as in this example :
[program]
widget:type=radioButton
vocabulary=programs
widget:separator=" " ;facultative
- This module was developed by JerOrc using code from Steve Hannah (steve@weblite.ca) into Xataface