⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

$extra_attributes in get_string_input()



wasdawasda
  • profile picture
  • Member

Posted 04 November 2011 - 14:35 PM

Hi,
I have noticed Grocery cannot add an extra attribute in the input, isn't?

I think the problem is the function get_string_input() at line 1345 of libraries/grocery_crud.php file. This function doesn't consider a third argument to fill the variable $extra_attributes.

Ty,
L.

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 05 November 2011 - 14:55 PM

[quote name='wasdawasda' timestamp='1320417328' post='24']
Hi,
I have noticed Grocery cannot add an extra attribute in the input, isn't?

I think the problem is the function get_string_input() at line 1345 of libraries/grocery_crud.php file. This function doesn't consider a third argument to fill the variable $extra_attributes.

Ty,
L.
[/quote]
You can have your own inputs by using callbacks such as callback_add_field ( http://www.grocerycrud.com/crud/example/callback_add_field ) and callback_edit_field ( http://www.grocerycrud.com/crud/example/callback_edit_field ).