Обычный вывод меню из корня сайта в один уровень:
[[pdoMenu?
&parents=`0`
&level=`1`
]]
вывод только с шаблоном ID=4
&templates=`4`
Убрать из вывода ресурсы с шаблоном ID=4
&templates=`-4`
[[pdoResources?
&parents=`16`
&tpl=`@FILE catalog_tpl.tpl`
&includeTVs=`image_link`
&sortby=`menuindex`
&sortdir=`ASC`
]]
Вывод страниц с шаблоном ID = 4
&where=`{"template:=":4}`
[[+total]]
&setTotal=`1`
[[pdoCrumbs?
&tplWrapper=`@INLINE <ol class="breadcrumb ml-auto"><li class="breadcrumb-item"><a href="[[+site_url]]">Главная</a></li>[[+output]]</ol>`
&tpl=`@INLINE <li class="breadcrumb-item"><a href="[[+link]]">[[+pagetitle]]</a></li>`
&tplCurrent=`@INLINE <li class="breadcrumb-item active">[[+pagetitle]]</li>`
]]
[[!pdoCrumbs?
&tplWrapper=`@INLINE <ul itemscope itemtype="http://schema.org/BreadcrumbList" class="breadcrumbs">[[+output]]</ul>`
&tpl=`@INLINE <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem" class="breadcrumbs__item"><a itemprop="item" href="[[+link]]"><span itemprop="name">[[+menutitle]]</span></a><meta itemprop="position" content="[[+idx]]"></li>`
&tplCurrent=`@INLINE <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem" class="breadcrumbs__item"><a itemprop="item" href="[[+link]]"><span itemprop="name">[[+menutitle]]</span></a><meta itemprop="position" content="[[+idx]]"></li>`
&outputSeparator=` / `
&showCurrent=`1`
&showAtHome=`0`
&showHome=`1`
]]