0

I'm building a custom fieldtype that uses Assets. So far, I've implemented Assets.Sheet, as described here: http://docs.pixelandtonic.com/assets/developers/sheet.html.

But when the Sheet slides into view, Assets tries to refresh the files, and no files are being shown. There are no JS errors and the thumbnail list is emty (checked the html code). Only a console message from garnish-0.1.min.js saying: "Double-instantiating a select on an element".

The sheet does work properly with any other standard Assets field, but not with my fieldtype.

Here's a screenshot: http://cl.ly/image/3b2D2t1I3g0f

Anybody any idea how to solve this?

5
  • Take a look at the network tab in the dev console - is Assets firing off an Ajax request and what is it getting back as a response? May 7, 2013 at 15:08
  • There are two ajax calls each time the Sheet tries to refresh. There is no error. But the result is not containing any thumbnails. The result below. css: "" html: "<div class="assets-thumbview">↵ <ul>↵ </ul>↵ <div style="clear: left;"></div>↵</div>↵" requestId: "3" total: 0
    – Diederik
    May 7, 2013 at 15:34
  • Diedrik, is it possible to gain access to the site in question? If so, shoot an email to [email protected] with the credentials :) May 8, 2013 at 5:59
  • @AndrisSevcenko Done, some hours ago on a rainy Belgian morning. ;-)
    – Diederik
    May 8, 2013 at 12:30
  • I've got a Error when using the search in the Sheet. Hope it helps: <b>Fatal error</b>: Call to undefined method CI_DB_mysql_driver::result() in <b>/data/sites/web/gentsbe/subsites/isis/system/expressionengine/third_party/assets/libraries/assets_lib.php</b> on line <b>693</b><br />
    – Diederik
    May 8, 2013 at 13:50

1 Answer 1

0

With a lot of help from @AndrisSevcenko from Pixel & Tonic, the issues have been resolved. Mostly caused by the code I wrote, a small fix was added to Assets and will be added to the next release.

Thanks again Andris!

1
  • I'd sure be curious to see what the solution was as I'm running in to the same error message. Jun 8, 2015 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.