Is there anyway to add a file custom fieldtype in a channel:form tag like so:
input type="file" name="photo_banner" value="{banner_photo}"
Instead of: {field:banner_photo}
I can get the latter to work, but not the former.
Thanks,
Fabian
ExpressionEngine® Answers is a question and answer site for administrators, end users, developers and designers for ExpressionEngine® CMS. It only takes a minute to sign up.
Sign up to join this communityIs there anyway to add a file custom fieldtype in a channel:form tag like so:
input type="file" name="photo_banner" value="{banner_photo}"
Instead of: {field:banner_photo}
I can get the latter to work, but not the former.
Thanks,
Fabian
I managed to achieve this by using the {field:custom_field} method, then inspecting the DOM and copying the div.file_field element, and adding it directly to my template. I also had to copy over the safecracker script tag that the {field:custom_field} tag generated.