0

Is it possible to add an element to the existing assets list and make it sortable

i need it because i have made some modifications that allow to group 2 assets together so generally i now have a list of normal assets added to entries and grouped ones that are wrapped in a div with class pair

i can sort the assets within pairs and assets outside any of the pairs but not the pairs themselves.

an example

In the screenshot you can see that there are two pairs with the purple background. Would it be possible to somehow add them to the sorting flow so i could drag them around as well?

  • Never mind the question, found out how to do this. If anyone else needs something similar then adding the new {{ jsClass }}( part of input template into a function and calling it after extra elements are added also makes them sortable – Gints Ligotnis Feb 6 '15 at 11:41
  • Would you mind entering that as an official answer, @Gints? – Brad Bell Feb 6 '15 at 16:40
0

Found out how to do this. If anyone else needs something similar then adding the new {{ jsClass }} part of input template into a function and calling it after extra elements are added also makes them sortable.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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