Thanks for your help with this BobRay, but you’ll need to forgive my ignorance when it comes to php/mysql (I’m more of a front-end developer, css/html/jquery). Never had any issues putting sites together before using previous versions of modx, but revo2 has me stumped
I’ve tried your latest suggestion, but the parent is still not being generated in the class (it’s outputting site-root in the home html).
I’ll explain what I have so far:
My folder structure is this:
web
Home (1) - the page I’m using to view my output from the tv
Photographs (5) - I want to get all thumbnails from this folder using the tv
Macro photographs (2) - long title is "macro" - there’s a couple of pages with photos in here using the thumbnail tv - all thumbnails showing ok on Home - I want all thumbs from here to have class="macro"
Automotive photographs (6) - long title is "automotive" - there’s a couple of pages in here too - all thumbnails showing ok on Home - I want all thumbs from here to have class="automotive"
The content of my BaseTemplate (Home is using this template):
<html>
<head>
<title>[[++site_name]] - [[*pagetitle]]</title>
<base href="[[++site_url]]" />
</head>
<body>
[[*content]]
</body>
</html>
The content of my Home page:
[[!getResources? &parents=`5` &tpl=`chunkThumbnail` &includeTVs=`1` &processTVs=`1`]]
The thumbnails are showing ok on Home, and the class on all thumbnails is site-root currently.
My chunk name: chunkThumbnail
<li class="[[*id]]"><a href="[[~[[+id]]]]">[[+tv.thumbnail]]</a></li>
The details of the thumbnail tv:
Variable Name: thumbnail
Caption:
Description:
Category: 0
Lock variable for editing:
Sort Order:
Clear Cache on Save: ticked
Rendering Options
Input Type: Image
Input Option Values:
Default Value:
Output Type: Image
Alternate Text:
H Space:
V Space:
Border Size:
Align:
Name:
Class: [[getParentName]]
ID:
Style:
Attributes:
Template Access: BaseTemplate is ticked
And the contents of my getParentName snippet:
<?php
/* GetParentName snippet */
if ($modx->resource->get('parent')) {
$parent = $modx->resource->getOne('Parent');
return $parent->get('pagetitle');
} else {
return 'site-root';
}
I think that’s all, my head is spinning now

All this just to get the parent class, I’m going insane now!
Any further help would be excellent (assuming you aren’t sleeping by now!).
4hero.