Hi guys,
I wrote my own module for sorting chunks via AJAX, so I am able to sort my chunks which are displayed via a TV in the document. Right now, I can only sort via the Modules, but would like to offer this functionality on the actual document page (i.e. a user can have sortable chunks completely unique to each doc).
Can anyone offer some insight for how to do this? Meaning, am I able to do this without modifying the core code?
Thanks!
-
☆ A M B ☆
- 24,524 Posts
ManagerManager should be able to deal with this. Drag-and-drop the list in the TV and save the resource, thus saving its revised list in the desired order.
Thanks for the replies, guys.
Susan, from what I can tell MM seems fairly limited in what it can do (e.g. renaming fields). Am I missing something which would allow me to drop in my code into a TV and have it display on the document side?
This is for Evo by the way.
-
☆ A M B ☆
- 24,524 Posts
I was referring to creating a custom MM function. Since MM works by using JQuery heavily to modify the DOM of the resource editing frame, it should be possible to add a JQuery drag-and-drop-with AJAX sorting feature to a TV.
I’m using the modified MODx 1.0.4 with custom TVs, and my next personal project is to create a new "sortable" TV for just this purpose (an improvement on my basic sidebar block selection TV as described in
http://sottwell.com/tv-input-types.html ). I’m working with a bespoke application of this on a site adding a multiple image upload TV with drag-and-drop sorting and some simple management of the images in the TV. Very interesting stuff. Some coding practices I’m not fond of, but no show-stoppers.