CreateInput*-modulefunctions is not doing their job

Talk about new features for CMSMS and modules.
Post Reply
Kagee

CreateInput*-modulefunctions is not doing their job

Post 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.
Last edited by Kagee on Sat Oct 07, 2006 10:58 pm, edited 1 time in total.
Post Reply

Return to “Feature ideas”