unclecheese/KickAssets — Issue #25: Is it possible to add drag and drop sortability to MultipleFileAttachmentField?
Author: micahsheets
Created: 2011-10-30 23:09:43+00:00
State: open

Uncle Cheese,

Do you have plans to add sortability to this field. I often want to attache a lot of images to an object or page and then need to sort them in the CMS to either select the 1st one as a primary image or to just set the order they display very specifically.

I can see how this might be difficult since I am trying to avoid special data objects to hold my images. But in this case there is a table in the database to manage the relationships so maybe it could just be code added to the onBefore Write of the Page or Object that the images are attached to? I might be able to figure out how to modify the form with jquery sortable and then just write some manual queries to put sort values into a sort column of the relationship table.