I have the idea for a super simple gallery using a custom TV which should be possible because of Revolutions
custom TV types.
I want a TV which consists of two parts: 1. image source, 2. alt text. Which means I need two text inputs. The first one (image source) should open the "MODx Browser" for easy upload and selecting.
I then want a button which adds another pair of image source + alt text. So one can assign multiple images to one TV.
The TV could look something like this:
assets/images/myfolder/image1.jpg=This is the alt text||assets/images/myfolder/image2.jpg=This is my little cat
The TV string could be parsed via "custom TV output" or a simple snippet.
I already managed to add another line of image + alt pair on button click. Unfortunately I am not experienced with enought with ExtJS at all. Is anyone here who understands my problem/idea and has some skills with ExtJS to accomplish it? I think this could be one simple clean way to add pictures.
Action draft:
The "real" TV input is hidden
You can see two input fields (maybe in table with legends)
Clicking the first one opens the MODx Browser
You can add more pairs via a button
Every time one leaves the focus of the "custom TV area" a string is saved to the "real" hidden TV
If the TV already contains a string, it is being separated into it’s pairs