Open eighthday opened 10 years ago
Interesting idea. However, the problem with doing this as a TV is how it's stored: TVs are defined in one table, the values in another, and they are best suited for storing a single value (there are some workarounds that make them store lists of data, but that creates a host of other problems). In a word, assets are not variables for the template (i.e. they are fundamentally not TVs, they represent their own data), so any integration would require some awkwardness. The other problem is that TVs are currently tied into Ext JS, which I specifically avoided with the current implementation... I'm not even sure if the dropzone drag/drop would be compatible., especially if there were multiple such TVs defined on a given page.
It might be possible to upload assets and manage them in the filesystem and in their dedicated table, and then have the TV select an asset ID. Then displaying the associated image would be a matter of tying into one of the included snippets/output-filters. Limiting the selection of assets might prove problematic too... the image TVs use media sources to limit image sources to a directory, whereas the asset manager obscures the filesytem hierarchy almost entirely.
This makes for an intriguing feature request, especially when something like a "featured image" is required.
That does sound complicated!
Even a single image tv with drop to upload would be very welcome. Currently I use https://github.com/alanpich/tveasyupload, which bypasses the media manager (that clients tend to really struggle with).
If It can be made compatible with migx, it would be a great addition to modx.
I really like the UI work on this extra, do you have any plans to make a standalone image tv? drag drop, drag to reorder and bypass of file manager would make for a very client friendly standard image tv.