@ fourroses666
I don't know if this is of interest but here it is anyway:
I've been experimenting with some of the standard snippets that are packaged with Evo, in particular Wayfinder.
After so many years of using Wayfinder and being ignorant of its real potential, I read a post about using Wayfinder as a Breadcrumb and from there I experimented further to make a "<title></title>" tag.
I made a copy of the breadcrumb config (assets/snippets/wayfinder/configs/) renamed it to "title-tag.config.php" and modified it:
<?php
$hideSubMenus = 1;
$fullLink = 0;
$selfClass = '';
$hereClass = '';
$firstClass = '';
$lastClass = '';
$textOfLinks = 'pagetitle';
$titleOfLinks = '';
$removeNewLines = 1;
if ($modx->config['site_start'] == $modx->documentObject['id']) {
$homeLink = '';
} else {
$homeLink = "{$modx->config['site_name']}";
}
$outerTpl = "@CODE:{$homeLink} |[+wf.wrapper+]";
$innerTpl = '@CODE: | [+wf.wrapper+]';
$rowTpl = '@CODE: '; //Do not change '@CODE: ' - it must stay exactly as it is (with the space), otherwise the breadcrumb breaks
$activeParentRowTpl = '@CODE:[+wf.linktext+][+wf.wrapper+]';
$hereTpl = '@CODE:[+wf.linktext+]';
?>
Wayfinder call:
<title>[[Wayfinder? &startId=`0` &config=`title-tag`]]</title>
I haven't tried but I am sure you can use other parameters in the config file as well e.g.
$level = '';
$includeDocs = '';
$excludeDocs = '';