Page 1 of 1

CreateInput*-modulefunctions is not doing their job

Posted: Sat Oct 07, 2006 10:13 pm
by Kagee
I'm trying to style the Search-button in 1.0.2.
It dosent have a ID, only a name. (can't use # in css)
After seaching the forum, wiki and web (witch lead me to http://trac.cmsmadesimple.org) i realised that the error was in lib/classes/module_support/modform.inc.php.
This file contains the module-helper functions of CMSMS (cms_module_CreateInput*-functions), and in the more readable sourcefiles (class.module.inc.php, where these functions are called CreateInputSubmit, CreateInputSelectList, CreateInputReset and similar) it's clearly stated that:

"This is basically a nice little wrapper to make sure that id's are placed in names and also that it's xhtml compliant."

Meaning (my personal meaning) that CreateInputSubmit, CreateInputText, CreateInputReset, CreateInputCheckbox all should parse their second argument ($name) the same way - by creating a string lokking like this:
<input type="*" name="$name" id="$name" ...

The problem is that it's only CreateInputText that creates both ID's and names - the other CreateInput*-functions only create the name.

I really hope this is'nt in any development-sourcefiles, since i have been unable to find them, and that everybody understands my sometimes bad english.