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

Type: Discussion
Status: New
pkunzipula
View Replies: View Best Answer
jordanlev replied on at Permalink Reply
jordanlev
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).
jordanlev replied on at Permalink Reply
jordanlev
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.
jordanlev replied on at Permalink Best Answer Reply
jordanlev
Looks like there's a bug in Designer Content. In the view.php file wherever you see something like this:
<?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
pkunzipula replied on at Permalink Reply
pkunzipula
Awesome! Thanks Jordan!

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.