You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
hey micahsheets, I'm not sure if this is related to your functionality, but in the latest kick assets i see a drag and drop functionality.
the problem is when i try to save the object:
Unknown column 'ManyManySort' in 'field list' IN POST /admin/EditForm
The problem comes from an issue that I have fixed in my fork of Kickassets but Uncle Cheese I don't think has merged my fixes into his branch. The issue is that if the object that has the relationship to the many objects is not decorated with ManyManySortable it will not have the ManyManySort column yet.
if you add the ManyManySortable to your object it should work.
Example: ManyManySortable::add_sortable_many_many_relations(array('ParentManyMany' => 'Relationship'));
I have put a fix into my Kickassets fork that should allow for using the functionality of Kickassets without decorating anything with ManyManySortable but it would work normally without any sortablility.
If you download Kickassets from my fork It should work for you. Please let me know of any bugs you find.
As far as the drag and drop in the MultipleFileAttachementField, that seems to break client side in the javascript so that when you do go to save it will break then as well. As of now I have not found a fix for the client-side javascript.
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.
The text was updated successfully, but these errors were encountered: