You could do this with output modifiers, but it would be significantly slower since you'd have to run getResources twice for each search, once just to see if it returns anything. This is a little more complicated, but much more efficient (untested):
Put these tags on the page:
<div class="artColumn col-md-8">
[[!GetStuff?
&parentTv=`artists and poets`
&heading=`Editions`
&class=`thumblist1`
]]
[[!GetStuff?
&parentTv=`single works`
&heading=`Paintings`
&class=`thumblist2`
]]
</div>
Create a snippet called GetStuff with this code:
<?php
/* GetStuff snippet */
$parentTv = $modx->getOption('parentTv', $scriptProperties, 'Missing Parent TV');
$heading = $modx->getOption('heading', $scriptProperties, 'Missing Heading');
$class = $modx->getOption('class', $scriptProperties, 'Missing class');
$parentTvValue = $modx->resource->getTVValue($parentTv);
$count = $modx->getCount('modResource', array('parent' => $parentTvValue));
if (!$count) { /* nothing to show */
return '';
}
$fields = array(
'parents' => $parentTvValue,
'depth' => '0',
'tpl' => 'boundEditionRow',
'includeContent' => '1',
'limit' => '10',
'includeTVs' => '1',
'processTVs' => '1',
'showHidden' => '1',
'sortby' => 'menuindex',
'sortdir' => 'ASC',
);
$output = "\n<h3>" . $heading . '</h3>' .
' <article class="' . $class . '">' . "\n";
$output .= $modx->runSnippet('getResources', $fields);
$output .= "\n <article>\n";
return $output;