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 10:01AM
    That should be included in the SQL example. I've updated the tutorial to reflect that.
  • edited 10:01AM
    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 10:01AM
    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 10:01AM
    Thanks. I just remove the array item from that method, and this is not shown now.
Sign In or Register to comment.