Manipulating File Uploader field views...
Permalink Browser Info Environment
Hello Jordan.
Thanks for this add-on!
I've got it mostly figured out, but I have 1 snag with the File Uploader field.
I have a block with 3 files that MAY be uploaded, but none are required. The page spits out an empty a tag for the ones that aren't used. How can I change it to display nothing instead?
Thanks for your time on this, and for all the support you've given me in the past.
Have a great day!
James
Thanks for this add-on!
I've got it mostly figured out, but I have 1 snag with the File Uploader field.
I have a block with 3 files that MAY be uploaded, but none are required. The page spits out an empty a tag for the ones that aren't used. How can I change it to display nothing instead?
Thanks for your time on this, and for all the support you've given me in the past.
Have a great day!
James
Type: | Discussion |
---|---|
Status: | New |
Hmm... might be a bug. Can you please ZIP up the block that you created with these upload fields and send that to me? You can either attach it to a forum reply here, or if you don't want others seeing it you can email it to me at concrete@jordanlev.com (don't PM me because the PM system seems to strip out attachments).
Also let me know if you've made any modifications to the block's code after you created it from the dashboard, or if it's exactly as it was when you first created it.
Thanks.
Thanks.
Looks like there's a bug in Designer Content. In the view.php file wherever you see something like this:
...change it to this:
I will update the addon soon(ish), but you will still need to update any blocks you've already created to include this fix (because updating the Designer Content addon only applies to blocks that will be created in the future, not ones that already have been created).
Thanks.
-Jordan
<?php if (!empty($field_1_file)): ?>
...change it to this:
<?php if (!$field_1_file->error): ?>
I will update the addon soon(ish), but you will still need to update any blocks you've already created to include this fix (because updating the Designer Content addon only applies to blocks that will be created in the future, not ones that already have been created).
Thanks.
-Jordan
Awesome! Thanks Jordan!