Couple thoughts:
Quote from: northernape at Oct 28, 2014, 11:25 AM
I have a getResources snippet call:
Just to clarify, you want results from the web context, no matter the context in which you're calling getResources, right? (Assuming "yes")
Quote from: northernape at Oct 28, 2014, 11:25 AM
that references a parent from the default (web) context, using the following tpl:
Side note: you don't seem to be using the priceCode TV in your tpl – that could probably be removed from the includeTVList property.
Question are you setting the &prepareTVs property? getResources uses that to determine whether or not to prepare TV media sources. You can also add &prepareTVList for performance.
Quote from: northernape at Oct 28, 2014, 11:25 AM
All thumbnail images display perfect in the default (web) context, however the images to not display in the other context I have setup.
I've installed pThumb to create the thumbnails, using a media source with the following details:
To clarify again, please – it's the TV that uses the media source, not a pThumb setting, is that correct? (Assuming "Yes")
Mark's idea of using absolute baseUrl might be extended to basePath as well - it depends on your context settings. One way to check is to look at the path generated by pThumb: are they prepended with the correct baseUrl?
If pThumb can't access the image file, it does the following to try to find it:
else { // otherwise prepend base_path and try again
$file = MODX_BASE_PATH . rawurldecode(ltrim($src, '/')); // Fix spaces and other encoded characters in the filename
if (!is_readable($file)) { // still can't find it? We'll try to correct a couple common problems.
if (!isset($this->config['basePathCheck'])) {
$this->config['basePathCheck'] = MODX_BASE_PATH . ltrim($this->modx->getOption('base_url'), '/');
}
$file = str_replace($this->config['basePathCheck'], MODX_BASE_PATH, $file); // if MODX is in a subdir, keep this subdir name from occuring twice. Also remove base_url, which might just be added by a context
if (!is_readable($file)) { // Time to declare failure
$this->debugmsg('File not ' . (file_exists($file) ? 'readable': 'found') . ": $file *** Skipping ***");
return $output;
}
}
}
Outside of that, it might just return nothing if it cannot find the file. You can turn on debug mode in the pThumb snippet properties.
Finally, but not least, if pThumb can't load the phpThumbOf class, it also just returns the input, but since it works in the web context, I doubt that's the problem..