Thank you, Bob! For you answer and especially for your book!
Found the idea in “advanced snippets” section, when you talk about creating objects with many-to-many relationship. I’m not yet as comfortable with raw database manipulation, however, mastering it is something from a long to-do list. Your links there might be helpful, though. Iterating through exploded TV lists is kind of ugly, i know, but there are not too many entries to affect perfomance, so i did it for now as a fast patch. Will come back to it later.
Taking an opportunity to ask…
There’s another issue i’m trying resolve right now. I created a custom TV for multiple file upload, with a custom responsive template (based on jQueryUI Touch), both for backend an frontend usage (this is for a musical college, you know, so forcing madam-content-manager to fight MIGX from backend just to drop some docs/pics on page seemed bad idea). Everything’s fine, yet one thing makes me wonder. I registered a namespace, yes, created a pathing plugin, created input and output controllers, wrote a UI template for dropping-naming-sorting-uploading files, producing JSON to store it in hard-coded invisible field, tied to controllers with tv{$tv->id}, tv{$tv->value}. Success! But now i want another custom TV UI element and just don’t get how to separate them from each other. Links to controllers are hard-coded in pathing plugin, tied to same events. All i have unique here of each TV is then tv{$tv->id} value sticked into template. Is that so? Should i struggle to code all custom UI elements in one template file, selecting them to render as needed, by id, or there’s something i missed? What is the exact mechanics of process? Found some “how to” guides for simplest cases (including the one in official MODX docs), but lack explaination. Tried to reverse-engineer MIGX, however, it’s still far beyond my dev level.
And another one… There’s a line in official MODX Docs:
”The pathing plugin will not be required in MODX 2.3; the Namespace will handle all the pathing. This is why we told you earlier to make the Namespace.”
It’s 2.8.3 here, but still doesn’t seem the case. Or maybe i’m missing something here again?
Quite new in all this stuff, so i’m sorry if asking something obvious.