I've created a second context, with a different domain, in my MODX Cloud site manager, and although the image thumbnail shows up properly when I select and image using an image TV, on the front end the image does not show up because the media source path gets dropped (e.g., "home/seed.png"). Using this very same image TV in the main web context results in the image path getting inserted properly (e.g., "assets/client_files/images/home/seed.png"). The TV itself is set to use the "TV Image" media source in both contexts. What could be causing this? Inserting images through tinyMCE works fine; the media source path gets inserted by tinyMCE.
Revo 2.5.0, on MODX Cloud
using ContextRouter
[ed. note: rainbowtiger last edited this post 10 years, 1 month ago.]
Check in TV tab Media Source if context have right source
FerX - Developer at Eracom s.r.l.
So, the TVs were all created when there was just one context. When I added the second context, the TVs gained the context under the Media Sources tab, showing the same media source assigned to both contexts. Editing in both contexts works fine; the image thumbnails show up properly when assigned through the TV, which opens the correct media source in both contexts. But this doesn't get carried through the to the front end UNTIL I resave an image TV, without changing anything. I tried deleting everything inside the cache folder, hoping to reset all the TVs, but that didn't help. Then only thing that works is resaving the TVs. Why does this work? What is it that gets reset when I resave a TV and is associated with how contexts work that isn't in the cache folder anywhere? This site has a lot of TVs, and I really don't want to go through and resave all of them by hand, so I'm trying to find out what exactly needs to be reset so I can do it globally, either in the server files or in the database.