Kevin Pirnie' Articles
- Home / Archives for January 2014
By: Kevin On: January 6, 2014
Posted In: Development ModX PHP Software Source Code development modx php web development
I found myself needing a really simple way to pull in my sites menu, but also wanted the ability to have some placeholders for the links as well. The following code should be created as a snippet, and called un-cached [[!YOUR_SNIPPET_NAME]] What's it do? Well, simply put it generates a navigation block, and throws all your ModX site page links into a hierarchal un-ordered list of link items. As well, as generates a bunch of dynamic placeholders in case you have a need for them. Note: the snippet needs to be called, prior to placing any placeholders in your content. How Do I Use This? Create your template or page and place the following snippet call (make sure to replace YOUR_SNIPPET_NAME, with whatever you named… Read More