Skip to content

Instantly share code, notes, and snippets.

@morozVA
Created January 3, 2018 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morozVA/09b9b543cf966d8cbbf22f916afe8d88 to your computer and use it in GitHub Desktop.
Save morozVA/09b9b543cf966d8cbbf22f916afe8d88 to your computer and use it in GitHub Desktop.
evo Wayfinder
[[Wayfinder? &startId=`[*parent*]` &excludeDocs=`6,7` &includeDocs=`5,6` &level=`3` &outerTpl=`outerTpl` &rowTpl=`rowTpl` &innerTpl=`innerTpl` &innerRowTpl=`innerRowTpl` &hereClass=`hereClass` &ignoreHidden=`1` ]]
outerTpl
<ul[+wf.classes+]>[+wf.wrapper+]</ul>
rowTpl
<li[+wf.id+][+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]" [+wf.attributes+]>[+wf.linktext+]</a>[+wf.wrapper+]</li>
innerTpl
<ul [+wf.classes+]>[+wf.wrapper+]</ul>
innerRowTpl
<li[+wf.classes+]><a href="[+wf.link+]" title="[+wf.title+]">[+wf.linktext+]</a>[+wf.wrapper+]</li>
[+wf.classes+] - место для указания используемого CSS-класса (включает class=" ")
[+wf.classnames+] - содержит только название CSS-класса (не включает class=" ")
[+wf.link+] - адрес (href) для ссылки
[+wf.title+] - текст для title ссылки
[+wf.linktext+] - текст названия ссылки
[+wf.wrapper+] - место для вывода подменю
[+wf.id+] - вывод уникального идентификатора (id)
[+wf.attributes+] - вывод дополнительных атрибутов ссылки
[+wf.docid+] - идентификатор документа для текущего элемента
[+wf.subitemcount+] -количество элементов в папке
[+wf.description+] - выводит значения поля описания
[+wf.introtext+] - выводит значения поля интротекста
не выводить не папки
&includeDocs=`SELECT id FROM modx_site_content WHERE isfolder<>0 `
соседние документы
&startId=`[*parent*]`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment