Way to create a module with multiple files upload
As the title says, i want to get a way to modify the articles module and add a "images" field where the user can be able to upload more than one image. Do I Use a jquery plugin to process the files?
Thanks in advanced
Comments
1. You can use the field type of "file" with the parameter of "multiple":
http://docs.getfuelcms.com/general/forms#file
2. You can use the field type of "template" with the parameter of "repeatable" and the fields parameter that has a field of either type "asset" or "file". If you use this field type, you can store the values in a single field as a serialized JSON string. This can be done by specifying public $serialized_fields = array('my_field'); on you model where my_field is the field in which to save the data as JSON. If you want to store it perhaps in a different table, you can use the model's on_after_save model hook to store it on another model
http://docs.getfuelcms.com/general/forms#template
http://docs.getfuelcms.com/general/models#hooks