Hovering on a resource in the resource tree of the manager, a tooltip will show up.
What is shown here is the value of the variable $qtip determined in lines 380-390 of the file
\core\model\modx\processors\resource\getnodes.class.php
If there is a value set in the System Settings (search for "tooltip"), it is taken from $qtipField:
$qtip = '';
if (!empty($qtipField)) {
$qtip = '<b>'.strip_tags($resource->$qtipField).'</b>';
} else {
if ($resource->longtitle != '') {
$qtip = '<b>'.strip_tags($resource->longtitle).'</b><br />';
}
if ($resource->description != '') {
$qtip = '<i>'.strip_tags($resource->description).'</i>';
}
}
I tried to set a fixed field for this tooltip (ignoring the System Setting).
So I commented out lines 380-390 and put this in:
$qtip = '<br /><b>menuindex = '. $resource->menuindex .'</b>';
That worked as intended.
But if I take
$qtip = '<br /><b>template = '. $resource->template .'</b>';
it wouldn't work: The returned value is always 0.
What is the reason for this behaviour?