Suggestion for the API Documentation & CreateInputRadioGroup
Posted: Fri Oct 16, 2009 2:54 am
Just a suggestion for the API documentation - this confused me for hours and very little in the way of discussion in the forums too.
The API syntax for CreateInputRadioGroup
CmsModule::CreateInputRadioGroup ( $ id,
$ name,
$ items,
$ selectedvalue = '',
$ addttext = '',
$ delimiter = '',
$ html_id = ''
)
Instead of $ selectedvalue = '', It might help to say $id=$value. This way, (if I understand the code correctly), the button's ID has a value and inherits the CHECKED text to the form input in modforms.inc.php.
I tried and tried and tried to get this to work but in no way would it work without using the $id of the input. This particular block int he API doc doesn't even mention the selectedvalue field in the text - so you're left to guessing how to use it.
The API syntax for CreateInputRadioGroup
CmsModule::CreateInputRadioGroup ( $ id,
$ name,
$ items,
$ selectedvalue = '',
$ addttext = '',
$ delimiter = '',
$ html_id = ''
)
Instead of $ selectedvalue = '', It might help to say $id=$value. This way, (if I understand the code correctly), the button's ID has a value and inherits the CHECKED text to the form input in modforms.inc.php.
I tried and tried and tried to get this to work but in no way would it work without using the $id of the input. This particular block int he API doc doesn't even mention the selectedvalue field in the text - so you're left to guessing how to use it.