Skip to content

Instantly share code, notes, and snippets.

@jaygilmore
Created May 13, 2014 15:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaygilmore/d336afa5623708e96ddd to your computer and use it in GitHub Desktop.
Save jaygilmore/d336afa5623708e96ddd to your computer and use it in GitHub Desktop.
Nested getResources Calls from RTFM
[[getResources@section-nav? &parents=`[[+id]]` &level=`[[+level:add]]` &toPlaceholder=`childNav`]]
<li>
[[+childNav:notempty=`<i class="icon-caret-right"></i>`]]
<a href="[[~[[+id]]]]">[[+menutitle:default=`[[+pagetitle]]`]]</a>
[[+childNav]]
</li>
<section>
<ol class="ug-toc">
<li>[[!getCache@section-nav? &element=`getResources` &cacheElementKey=`toc-[[*section-parent]]` &parents=`[[*section-parent]]`]]</li>
</ol>
</section>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment