You could use the If snippet in your tpl chunks to add the class, e.g.:
Hello, I build a menu with getressources, and I would like to highlight the current menu item being visited by applying a class to the element.
It was possible to do this with Ditto on Evo, but is there an equivalent for getRessources in Revo ?
Thanks
<li[[!If? &subject=`[[+id]]` &operator=`eq` &operand=`[[*id]]` &then=` class="current"`]]><a href="[[~[[+id]]]]" title="[[+pagetitle]]">[[+longtitle]]</li>
global $modx;
$doc = $modx->resource->get('id',$did);
if ($doc['type'] == 'reference')
$did = $doc['content'];