Thats the point of using mediasources.
You're not adding the path in the database, only the filename.
This is convenient in most cases. Think about when migrating from development to production, or using this component in another website.
paths are not going to be same, so its convenient to not save it in the database.
So, you create a media source pointing to your correct path in each different environment.
Check the following:
put only this in your renderImageColumn chunk:
filename: [[+filename]] <br />
path: [[getmigxcartfilepath:phpthumbof=`w=150`? &filename=`[[+filename]]`]]
and paste the output when you go to images grid here to see what is coming out
Have you set up your mediasource and associated it with your
migxcartimage Tv
take a look at the mine in the attached .png
Are you sure there's a
core/components/migxcart/migxconfigs/migxcartimages.config.inc.php with the correct values?
make sure there's a Resource with ID you put there and a TVname that actually exists.
<?php
if (isset($_REQUEST['iframeTpl']) && $_REQUEST['iframeTpl']=='ajaxupload.html'){
$_REQUEST['resource_id'] = '1';// we need any resource-id of a resource in the correct context, just to get the context
$_REQUEST['tv_name'] = 'migxcartimage';// we need a image-tv with the correct mediasource in this context
}
If you have all this in place you should not be having any issues.
[ed. note: lithiumlab last edited this post 13 years, 2 months ago.]