CalcBuilder Forum

Change size of name field at admin

User anonymous 2011-10-21 14:21:48

Hello,

Quick question, is it possible to make the name filed in the calculator admin longer? Is there a piece of code I can change?

Moonsoft support 2011-10-21 14:22:43

Yes, you should change code in administrator/components/com_calcbuilder/views/utility/tmpl/edit.php :
- line 228 change
var name = new Element('input').setProperties({type:'text',size:'10',id:'name'+counter,'name':'name'+counter});
to
var name = new Element('input').setProperties({type:'text',size:'20',id:'name'+counter,'name':'name'+counter});

- line 408 change
< input size="10" name="name< ? php echo $counter; ?>" id="name" type="text" value="< ? php echo $field->name; ?>">
to
< input size="20" name="name< ? php echo $counter; ?>" id="name" type="text" value="< ? php echo $field->name; ?>">

...
CalcBuilder

Create dynamic calculators

Buy now!
...
List Manager

Build different lists for your site

Buy now!