pdoMenu Sitemap

Body
Supplemental documentation to the developer's product. I delved into the code to pull out the gems for use on this site.

Authored on

Framework

Packages Used:

pdoMenu found in pdoTools

TwitterBootstrapForMODX

FontAwesomeForMODX

Prerequisites:

Site-root level Containers were given the rel="container" attribute to use with &tplCategoryFolder.

The Templates in the Snippet call are listed in an outside-in perspective.

Page Contents:


<blockquote>
  <ul class="list-group">
    <li class="list-group-item"><h1><a href="[[++site_url]]">[[++site_name]]</a> Sitemap</h1></li>
	  <li class="list-group-item">
	    [[!pdoMenu?parents=`0`&scheme=`full`&sortby=`pagetitle`&sortdir=`ASC`&resources=`-1`
		  &tplOuter=`@INLINE <ul class="list-group">[[+wrapper]]</ul>`
		  &tplCategoryFolder=`@INLINE <li class="list-group-item "><h2><a href="[[+link]]">[[+menutitle]]</a></h2>[[+wrapper]]</li>`
		  &tplParentRow =`@INLINE <li class="list-group-item "><h3><a href="[[+link]]">[[+menutitle]]</a></h3>[[+wrapper]]</li>`
		  &tplInner=`@INLINE <blockquote><ul class="list-group">[[+wrapper]]</ul></blockquote>`
		  &tpl=`@INLINE <li class="list-group-item">[[+date]] <a href="[[+link]]">[[+menutitle]]</a></li>`			
            ]]			
    </li>
  </ul>
</blockquote>