ok I have got his far, I am using the following @EVAL on a tv called projectImageURL
@EVAL $tv ="projectImageMap";$id = isset( $id )? $id: $modx->documentIdentifier;$tvValue = $modx -> getTemplateVar($tv,"*",$id);return print_r ($tvValue);
in the default value field of the tv.
But the document Identifer is being evaluated from the page on which I am calling ditto. How do I get the tv that the @EVAL is "filling in" (projectImageURL) to always reference the original doc itself - if you understand. SO that all
projectImageURLs come from projectImageMap on each doc?
Also from the array do I extract the image name:-
$imageName = $tvValue["value"]
? thanks