Pages — Nested Menu
{exp:pages_nested_menu root="/about/" include_ul="no" include_root="no" depth="1"}
<a href="{pnm_page_url}" title="{pnm_title}">{pnm_title}</a>
{/exp:pages_nested_menu}
Parameters
root= — string set the root of displayed pages (use root="page_url" to show children of the current page)
include_ul= — yes or no to have the surrounding <ul> automatically created
include_root= — yes or no to have the specified root shown, or just it’s children shown
depth= — integer limit how far down the tree the plugin decends
order= — integer/string custom field id/name to specify an order. This should be a text field with no formatting that contains an integer used for sorting pages (similar to Reeorder).
status= — string just like weblog entries, you can limit the pages to only show Open, Closed or not Closed pages.
Variables
- All non-custom field variables are available, prefixed with
pnm_. In other words to show the title of a page use {pnm_title}
{pnm_depth} — shows the how deep each page is
{pnm_count} — counts each page output
{pnm_has_children} — yes or no depending on wether the page has children pages
Download
Assorted Trickery
{exp:pages_nested_menu root="/about/" include_ul="no" include_root="no" depth="1"}
<a href="{pnm_page_url}" title="{pnm_title}"
{if "{segment_2}" == "{pnm_url_title}"} class="current"{/if}
>{pnm_title}</a>
{/exp:pages_nested_menu}