Introducing KickAssets: Give AssetAdmin the Boot.

25 Aug

44 Responses to “Introducing KickAssets: Give AssetAdmin the Boot.”

  1. jam13 25. Aug, 2011 at 2:22 pm #

    I think you seem to have pretty much nailed it. Just today we had a client asking about how to replace existing files without getting filename+number. Very impressed.

  2. lx 25. Aug, 2011 at 3:13 pm #

    Wow, this looks so cool. But is there a progressbar while uploading? In this video i cant see any but thats maybe because of a localhost connection.
    Is this working together with the securefiles module?

    thanks for your hard work.
    now its definitely time for a donation :)

    • unclecheese 25. Aug, 2011 at 7:16 pm #

      Yes! There is a progress bar. It’s set to delay by 1 second, though, so it doesn’t get annoying on short uploads.

      • Colonel_Bo 24. Oct, 2011 at 11:21 am #

        we updated a project from Silverstripe 2.4.4 to 2.4.6. We use kickassests for fileupload in dataobjectsets.
        while uploading a progressbar appears, but it’s only a white border, without a progress in it.
        I even removed our cms-stylings to rule that out, but it’s still just a white border.

        Is it possible, that this a problem of 2.4.6?

  3. Shea 25. Aug, 2011 at 8:59 pm #

    This is amazing thanks so much, we really needed some improvements here!

    After having a play around a couple of things got me though – How do I delete a folder in the kickassets overlay browser? If I click on a folder it opens in a single click, would it be possible for it to just select the folder with a single click so it could then be deleted?

    The other thing is replacing a file in the overlay, if I drag a new file onto the replace file area it works but, if I then hit save it reverts back to the old file.

    Thanks again for your epic work :)

    • unclecheese 25. Aug, 2011 at 10:19 pm #

      Yup, I’m aware of those two bugs. I’m going to make the folders a double click like the files, and I’m going to have the form refresh after replacing a file.

  4. Wilson 25. Aug, 2011 at 11:58 pm #

    Wow! Screencast looks amazing, can’t wait to try it out. All hail/donate (to) UC.

  5. Mick 26. Aug, 2011 at 6:33 am #


  6. David 26. Aug, 2011 at 8:42 am #

    Very nice! Tried and approved! Do you have plans to use it from DataObjectManager or from a popup ?

  7. Rob M 29. Aug, 2011 at 11:09 am #

    I just watched this vidcast, very cool!

    Would this replace the Assets section in the CMS completely?

    Also, since you mentioned the use of HTML5 drag+drop, do you have plans to offer fallback for browsers that don’t support it?

    • unclecheese 29. Aug, 2011 at 1:29 pm #

      No plans to support old browsers. You’ll just have to tell your clients not to use IE, and I don’t think that’s all that inappropriate when you’re using a web application. God knows how many times I’ve been dictated to use IE for some ActiveX or .NET app. :)

      Yeah, the idea is that AssetAdmin goes away. We’ll see!

      Keep running pulls. Gets updated every day.

  8. KristofV 30. Aug, 2011 at 7:07 pm #

    Nomen est omen, this plugin really does kick ass :) However I do have a question on performance, will adding this plugin affect the loading time of a regular page, only the CMS or only when actually using asset manager? Does that also apply for DOM, or other plugins?

    • unclecheese 30. Aug, 2011 at 7:24 pm #

      No, there’s no reason why this would affect performance on the frontend. Thanks for your feedback, and keep pulling down. It gets updated daily.

      • KristofV 31. Aug, 2011 at 2:26 am #

        Awesome, thanks for the reply! I’m going to take a look at some modules :)

        • unclecheese 31. Aug, 2011 at 8:27 pm #

          Make sure you’re on the latest version. That’s an old bug!

          Glad you like it!

  9. Craig 06. Sep, 2011 at 3:28 am #

    Very cool, how easy is this to upgrade for clients using swfUpload?

  10. Todd Morey 06. Sep, 2011 at 3:05 pm #

    Amazing work! Can I be the one to ask if KickAssets could work on the front end of a Silverstripe website?

    • Todd Morey 06. Sep, 2011 at 7:10 pm #

      (I should mention that I am referring to using it for objects with many-many image relationships, like a web designer uploading portfolio images. I’ve only just started to look at incorporating HTML5 drag and drop features into Silverstripe front-end forms. Looks like you’ve done a lot of great work here. Time to dig into the code!)

    • unclecheese 06. Sep, 2011 at 7:46 pm #

      No, it’s not for the frontend. There are tons of jQuery plugins available to help you with that.

  11. Jan D 07. Sep, 2011 at 10:56 am #

    Hi, amazing stuff and exactly the SilverStripe enhancement I was looking for a long time!
    One question: with the current Gallery DOM module image changes on pages are live immediately, don’t follow the publishing workflow and are not in the page versions. Is this different/fixed with the KickAssets?

    • unclecheese 07. Sep, 2011 at 11:02 am #

      No, that’s a whole separate issue. This module is for managing assets, not DataObjects. You might look at the Versioned Files module for controlling the published state of assets themselves.

      • Jan D 07. Sep, 2011 at 11:30 am #

        I see, thanks for the hint.

  12. Pouic 08. Sep, 2011 at 11:20 am #

    I found a problem when click to list files in directory. ClassName error… whatever!

    This error ocurred where have Files without ClassName, in File table.
    All files in this table need have ClassName (File, Image, Folder,…)

    • unclecheese 08. Sep, 2011 at 11:23 am #

      Yeah, definitely make sure that none of your File records have null ClassName fields. That causes problems!

  13. mwm 13. Sep, 2011 at 7:05 am #

    Thanks for the great module UncleCheese!

    I was wondering if there would be support for sortable? I wanted to be able to sort the files with the MultipleFileAttachmentField

    • francisco 18. Sep, 2011 at 11:16 am #

      +1 for the sortable support!


    • Micah Sheets 02. Nov, 2011 at 12:44 pm #

      I have been working on making the MultipleFileAttachmentField save sort order on the many_many relationship table. I have it so that saves the order into the database when the files are attached but as of now it just puts in the initial order they were uploaded. I am now working on adding jquery sortable to the fields in the CMS. The problem is that I have to add functionality to the saveInto() function which cannot be overridden in a decorator. I also have to add extra javascript files and edit templates. Hopefully when I get it done Uncle Cheese will merge the functionality into his core code.

    • Micah Sheets 03. Nov, 2011 at 4:35 am #

      I have added the many many sortable functionality to MultiFileAttachmentField. The updates can get got here:

      I tried to document the code so it is easy to understand how to implement it. I have not tried it on has many relationships yet.

      • Neil Creagh 24. Apr, 2012 at 2:16 pm #

        Hi Micah / Uncle Cheese

        Great work, the sort order works well -but I’m finding that it reverts back to being ordered by name everytime a new file is added.

        eg. My client has multiple images per page, in a custom order, but when they add a new image to a page the order reverts back and they have to reshuffle all of them again.

        Is there a way to tell it to leave the custom order as it is, and just add the new file to the bottom or top?

  14. francisco 06. Oct, 2011 at 1:49 pm #

    Hey Unclecheese, i was wondering if there is a way to add this kind of functionality to front end forms, i know this module was not meant for that, but i think that will kick ass for real!!!

    +5 for front end form support!

    • unclecheese 13. Oct, 2011 at 10:10 am #

      Hi, Francisco,

      KickAssets is a backend tool only. Its focus is more on browsing and managing existing files, which is not something you typically want a frontend user doing. Uploadify is much more suitable for frontend forms. The only thing I can think of that KickAssets offers over Uploadify in the frontend is the drag-and-drop, which is pretty cool, but maybe we could add that to Uploadify?

      • francisco 01. Nov, 2011 at 8:50 am #

        that could be great!, actually i think thats the missing part :)
        i promisse i will buy you a beer if you do it :)

        and the sortable for objects in the backend for the files… that would be awesome!

  15. lx 28. Oct, 2011 at 4:32 pm #

    Hi unclecheese,

    i am using the FileAttachmentField as a replacement for the FileUploadField.php, because the droparea is so nice :) But it shows sometimes a strange behaviour. Sometimes i get an error message that .jpg isnt allowed.
    Sometimes the firefox starts maybe 6-10 Uploads of the same file, so that the files is uploaded 6-10 times at once. When all uploads are done i can see in the cms, how each upload leads to another filename. E.g. the filename shows “image.png” then switches to “image2.png”, “image5.png”, “image3.png”, “image4.png”.

    At the moment i cant find out when these things happen. It seems that uploads using drag&drop are causing more trouble than uploads with the button “from your computer”.


    • francisco 01. Nov, 2011 at 8:52 am #

      from time to time I’m getting the same error, i think is something related to cookies/sessions… or something like that, because if you clear the browser history and cookies and reopen the browser, the error seems to disappear…

      • francisco 01. Nov, 2011 at 8:53 am #

        actually i noticed that the error seems to start adding extra files each time you drop a file:
        first time only one
        second time 2 duplicates
        third time 3 duplicates
        … and so on…

  16. Marcel 19. Nov, 2011 at 10:07 am #

    HI can you tell me where i have to upload those files?
    I use filezilla, but i need to know where i have to upload those files.
    I’m just a new silverstripe user, and i have image upload problems, i hope this one will fix it.. ;)

    • unclecheese 19. Nov, 2011 at 11:25 am #

      What do you mean by “upload those files?”

      • Marcel 19. Nov, 2011 at 11:53 am #

        I think i have to upload those kissassets files to the server ?
        I have still a problem with uploading images..’i don’t know whats the problem is?

      • Marcel 19. Nov, 2011 at 11:55 am #

        Silverstripe is working on my host server, but it can’t upload images, maybe you know the problem of that?
        Hopefully you can help me out..

        • unclecheese 20. Nov, 2011 at 11:51 am #

          What do you mean by “can’t upload images?”

  17. Thomas B. Nielsen 19. Jan, 2012 at 3:50 am #

    Wow Mister Cheese!
    I did not see this before now, but it really looks amazing.
    This is really one of the things where i have not been to happy with SS.
    Hope that this sort of functionality will find it’s way to SS 3.0 – i think the SilverStripe team could benefit from the usability perspective here (a bit sceptical about that in ss3 so far)

    One thing though, i really wish that all modules for SS was following a guideline for design and UI. I think an admin UI must look similar in all different views.

    Great work!

  18. Shaun 09. Mar, 2012 at 6:48 am #

    Hi Uncle Cheese,

    Love Kickassets. Just two things:
    1) When i did my initial install i got the following error

    Warning: Call-time pass-by-reference has been deprecated; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file in …www\sites\silverstripelocal\kickassets\code\KickAssetAdmin.php on line 643

    i changed the code to $file->updateCMSFields($fields); and it worked fine (am running PHP 5.2.6)

    2) When i create a new folder with Kickassets and rename to ‘bob’ for example it does not update to the CMS. In other words when i try to insert a image via TinyMCE the folder name reads ‘new folder’ instead of ‘bob’.

    I had a look at the database and and it seems to use the ‘Title’ field instead of the ‘Name’ field to display the folder namein the CMS.

    Hope it makes sense…i could send you screen shots if it helps.

  19. Neil Creagh 24. Apr, 2012 at 2:17 pm #

    Hi Micah / Uncle Cheese

    Great work, the sort order works well -but I’m finding that it reverts back to being ordered by name everytime a new file is added.

    eg. My client has multiple images per page, in a custom order, but when they add a new image to a page the order reverts back and they have to reshuffle all of them again.

    Is there a way to tell it to leave the custom order as it is, and just add the new file to the bottom or top?

Trackbacks and Pingbacks

  1. SilverSmith: Reshaping SilverStripe Development | PHP World - 20. Dec, 2011

    […] image browser, based on the KickAssets module allows file management and insertion of images into a […]