@EVAL return 'Choose Gallery'.$modx->runSnippet('GalleryAlbums',array('limit'=>'100','prominentOnly'=>'0','rowTpl'=>'galleryoption'));
||[[+name]]==[[+id]]
This question has been answered by Tyreal2012. See the first response.
$output = 'Choose image...=='; // the thumbTpl chunk would be something like ||<span style="background-image: url([[+thumb]]);"></span>==[[+image]] maybe you also have to use [[+image_absolute]] instead of [[+image]] $output .= $modx->runSnippet('Gallery', array('album' => 'albumID', 'thumbTpl' => 'chunkName', 'thumbWidth' => '50', 'thumbHeight' => '50', 'imageWidth' => '1000', 'imageHeight' => '1000')); return $output;
$output = 'Choose image...=='; $output .= $modx->runSnippet('Gallery', array('album' => '64', 'thumbTpl' => 'TVGalThumb')); return $output;
||<img src="[[+image_absolute:phpthumbof=`&w=100&h=100`]]">==[[+image_absolute]]
@EVAL return $modx->runSnippet('GalleryThumbs');
<img src="[[*PrimaryImage:phpthumbof=`&w=400&h=400`]]
||<img src="[[+image_absolute:phpthumbof=`&w=100&h=100`]]">==[[+id]]