Image + layout Definition
Wasn't sure where to post this..
Here:
http://www.getfuelcms.com/user_guide/modules/tutorial states:
"A field name that ends in image or img will automatically be turned into an image select field/upload field."
Does this work when defining a layout in my_fuel_layouts? I thought I had it working once but with:
'header_image' => array('type' => 'textarea', 'description' => 'Header Image'),
It's not. I dropped the 'type' from it and no change. At the moment I'm using a textarea and the image button. Works fine but it's just for an image..
Comments
So you'd use the on_before_save method to decide which form value to use yeah?
header_upload_image
toheader_image_upload
, it will automatically set the value of header_image to the name of the uploaded image (if you are uploading). The suffix '_upload' triggers that.