Solved !
1) In a shunk, I've added this: [[menu]]
2) the snippet of menu is:
<?php
// Si l'utilisateur est enregistré, tous les menus sont affichés
if (isset($_SESSION['connected'])) {
$output = $modx->runSnippet('Wayfinder',array(
'startId' => '1',
'outerTpl'=> 'menuOuter',
'rowTpl' => 'menuRow',
'innerTpl'=> 'menuInner',
'innerRowTpl' => 'menunnerRow',
'hereClass' => 'current_page_item',
'firstClass' => '',
'lastClass' => '',
'excludeDocs' => ''
));
} else
// sinon, masquer certaines pages
{
$output = $modx->runSnippet('Wayfinder',array(
'startId' => '1',
'outerTpl'=> 'menuOuter',
'rowTpl' => 'menuRow',
'innerTpl'=> 'menuInner',
'innerRowTpl' => 'menunnerRow',
'hereClass' => 'current_page_item',
'firstClass' => '',
'lastClass' => '',
'excludeDocs' => '2,4,6,29'
));
}
echo $output;