Skip to content

Instantly share code, notes, and snippets.

@MacConin
Created March 9, 2015 10:03
Show Gist options
  • Select an option

  • Save MacConin/73cbf872283c63d733a6 to your computer and use it in GitHub Desktop.

Select an option

Save MacConin/73cbf872283c63d733a6 to your computer and use it in GitHub Desktop.
pdoMenu test pattern Curious which templates needed for your modx menu? Just place this snippet call into your layout Replace placeholder (A-K and 1-10) with needed functions.
<!-- Testpattern for pdoMenu -->
[[pdoMenu?
&parents = `0`
&level = `2`
&cache=`0`
&tplOuter = `@INLINE <ul[[+classes]]>
[[+wrapper]]
</ul>`
&tpl = `@INLINE <li[[+classes]]><a href="[[+link]]" [[+attributes]]>[[+menutitle]]</a>
[[+wrapper]]</li>`
&tplParentRow = `@INLINE A`
&tplParentRowHere = `@INLINE B`
&tplHere = `@INLINE C`
&tplInner = `@INLINE D`
&tplInnerRow = `@INLINE E`
&tplInnerHere = `@INLINE F`
&tplParentRowActive = `@INLINE G`
&tplCategoryFolder = `@INLINE H`
&tplStart = `@INLINE K`
&firstClass = `1`
&lastClass = `2`
&hereClass = `3`
&parentClass = `4`
&rowClass = `5`
&outerClass = `6`
&innerClass = `7`
&levelClass = `8`
&selfClass = `9`
&webLinkClass = `10`
]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment