Hi there
I have a TV for an image, with a set image source taking content from assets/images/
When the image is selected from the TV, of course, it outputs just the part after assets/images/ - this to use the image TV, the template now needs to read
<img src="assets/images/[[*tv_name]]" />
I just wanted to check this is the behaviour I should expect. If so it would be useful to explain this on the Media Sources or Image TV documentation - it doesn't have to work this way, MODX knows the full path of the Image Source, so might output the full path.
Cheers
Jim
-
☆ A M B ☆
- 24,524 Posts
Using a Media Source, the TV should return the full relative path to the image - assets/images/image.jpg. It won't display this in the TV content itself, just in the final output.
-
☆ A M B ☆
- 24,524 Posts
I can't imagine what. If you just have the TV's raw output on a page, it doesn't have the media source path + the image path? When you edit the TV in the resource, you are sent directly to the assets/images/ directory to select and upload images, with no problems at that stage?
So on another thread, Susan clarified that my image TV should be outputting the whole path, including that part defined in the media source, whether using an output template or just as default. I've checked on another install I have and this works for me. Both set ups are running Revo 2.2.6.
Does anyone have any ideas where the problem might be? i.e., why my Image TV is only outputting the part of the URL that is user defined, rather than media source baseURL + TV image data ?
This is solved: flushing the permissions / cache seems to mean the TVs have started to behave as expected. I'm sure I did that before, but just to say this is now resolved.