Thanks so much for your help. Still no luck on getting it to work though. I’m probably doing something stupid, I’m a newbie here. The test page is located here:
http://66.216.120.27/test-photo-page.htm
Here’s the template code I have for my picture "column":
<div id="piccolumn">
[[lightboxImage]]
[*#Photo1*]
</div> <!-- end of piccolumn div -->
Photo 1 TV is showing up (I left this TV here just as a test) , but the lightbox snippet won’t display the image from the lightboximage tv (which will display if I use the lightboximage tv directly on the template)
Here’s the snippet I’m using:
if (!$tv_image) {$tv_image = "lightboxImage";}
if (!$width) {$width = "350";}
if (!$height) {$height = "350";}
$phpThumb = "/assets/snippets/phpThumb/phpThumb.php";
$js = "/assets/js/lightbox/lightbox.js";
$css = "/assets/js/lightbox/lightbox.css";
$tv = $modx->getTemplateVar($tv_image);
if ($tv[’value’]) {
$modx->regClientStartupScript($js);
$modx->regClientCSS($css);
$output = ’<a href="’.$tv[’value’].’" rel="lightbox" title="’;
$output .= $modx->documentObject[’longtitle’].’">’;
$output .= ’<img src="’.$phpThumb.’?src=’.$tv[’value’];
$output .= ’&w=’.$width.’&h=’.$height.’"’;
$output .= ’ alt="’.$modx->documentObject[’longtitle’].’" /></a>’;
return $output;
}
The template variable: is [*lightboxImage]
so I think everything is default