Forums / Cotonti / Bugs / Custom extrafield bug + cot_inputbox

cot_inputbox resetting custom html code for extrafield

Eugene
#37196 2013-03-11 10:59

When updating/customizing extrafield html code in admin area - it goes to DB (cot_extra_fields) as "field_html".
Later this content is used to build inputbox (extrafields.php -> function cot_build_extrafields). On line #36 this html goes to cot_inputbox while it is expecting just a custom name of $rc - NOT the html code itself (forms.php #67-69)
So, later it is just replaced with 'input_default'.

Exaple of the code I play with in admin area of extrafields for Pages is
 

<input required="required"  type="text" name="{$name}" value="{$value}" {$attrs} />

or

<input type="number" name="{$name}" value="{$value}" {$attrs} />


We need clarity on customization proccess. We need to be able to both:

  1. Create custom $R[input_{$type}_{$rc_name}] in our plugins
  2. Customize html mask in admin area (this is very beneficial for newbies)