Hi, it's me again.
I'm working with the following structure:
I have a migxTV which manages layoutboxes.
Some of those boxes contain migxTVs with files, for example images.
Now as I changed my default mediasource to a custom directory I have no settings made which could cause trouble.
Everything works fine, images are rendered fine in the backend-preview.
But when I do my getImageList IN my getImageList in the frontend, I do not get the whole path I need.
for example:
file is in "assets/customer/images/image1.jpg" but my output is only "images/image1.jpg".
Where do i have to set my mediasource?
In the backend, when rendering the preview it says "source=1", which is correct.
BTW: the same TV works perfectly, when it is not nested.
greetings,
janein
the option, which does work for sure is to put the path into your tpl-chunk:
assets/customer/[[+yourimage]]
yeah, I've thought of that too.
It's not the best way, but if you also don't know anything better, I think I'll go with that ;-)
maybe its possible to give the inner getImageList-call also a TV-name of a MIGX-TV which has the correct mediasource configured or any of its inner image-TVs or image-TV-fields with the corresponding fieldname have the correct mediasource assigned.
There are ways for sure to get the configured mediasource, but I would need to check that myself.
Anyone find a solution for this? Other than hard coding the path into the tpl.
maybe its possible to give the inner getImageList-call also a TV-name of a MIGX-TV which has the correct mediasource configured or any of its inner image-TVs or image-TV-fields with the corresponding fieldname have the correct mediasource assigned.
There are ways for sure to get the configured mediasource, but I would need to check that myself.
I think, this could work. Didn't test it.