How to make active menu for WebLink?

Good evening.
The output of the menu is done via the Wayfinder. The links are displayed via the type of resource: links
For this type of resource Wayfinder does not make the class active. Trying to edit wayfinder.class.php but there is a problem that the class began to appear on all links.

if ($type == 'modWebLink') {
$docId = $this->modx->resource->get('id');
print_r ($docId);
if (!empty($this->_css['here']) && $this->isHere($docId)) {
$returnClass .= $hasClass ? '' . $this->_css['here'] : $this->_css['here'];
$hasClass = 1;
//print_r ($docId);
//print_r ($this->modx->resource->get('id'));
}
}

Comparison is made by id, but since id links to another, you just need to substitute the id = content. 57898ad1be8947c4a8671e5186acc648.png
July 2nd 19 at 18:08
1 answer
July 2nd 19 at 18:10
Solution
You need to put theit PdoTools and it works!

Find more questions by tags MODX