Hi,
there is a bug in the versions later 0.9.0 -
$showSelf $showUnpubs $showNotInMenu don´t work because this variables are not defined in the function.
But all works fine in v0.9.7 with bugfix as follow:
Search following lines:
function MakeSiteMap($funcModx, $listParent, $listLevel, $description, $titleOfLinks,$maxLevels,$su,$selfAsLink){
MakeSiteMap($funcModx,$child['id'],$listLevel+1,$description,$titleOfLinks,$maxLevels,$su,$selfAsLink);
return MakeSiteMap($modx, $siteMapRoot, 0, $showDescription, $titleOfLinks,$maxLevels,$showUnpubs,$selfAsLink);
and replace with:
function MakeSiteMap($funcModx, $listParent, $listLevel, $description, $titleOfLinks,$maxLevels,$su,$selfAsLink,$showSelf,$showUnpubs,$showNotInMenu){
MakeSiteMap($funcModx,$child['id'],$listLevel+1,$description,$titleOfLinks,$maxLevels,$su,$selfAsLink,$showSelf,$showUnpubs,$showNotInMenu);
return MakeSiteMap($modx, $siteMapRoot, 0, $showDescription, $titleOfLinks,$maxLevels,$showUnpubs,$selfAsLink,$showSelf,$showUnpubs,$showNotInMenu);
That´s all!