Image on Articles Model

edited May 2015 in Modules
Where is the creation of image field in the database ? plus how is the thumb_image variable created on the Base_module_record ?

Thanks,

Comments

  • edited 9:58AM
    That should be included in the SQL example. I've updated the tutorial to reflect that.
  • edited 9:58AM
    Thank you! And how does is generated the thumb_image input in the cms ? in my DB i have not the thumb_image field created, however the input "thumb image" is showed in the cms.
  • edited 9:58AM
    The field type will display because the form_fields method includes it in the $fields array. However, it won't save to the database because there are no fields with those names to save to. Because it has "image" in the field name, the representative "asset" kicks in and should show the asset field type.
    http://docs.getfuelcms.com/general/forms#asset
  • edited 9:58AM
    Thanks. I just remove the array item from that method, and this is not shown now.
Sign In or Register to comment.