Skip to content
joshrcook edited this page Sep 29, 2014 · 1 revision

<r:ancestor_menu />

This will list all pages going up from the current page and pages at the root. So, if you put this tag in a page nested deep within your site, it will print out all pages above and below the current page. It will not print out pages nested beneath other root level pages.

Attribute Options

ul_class="your-class" - The class that the unordered list will have

ul_id="your-id" - The ID that the unordered list will have

active_class="your-class" - The class that gets added to the <a> tag of the page you are currently on.

open_class="your-class" - The class that gets applied to every <li> tag containing the current page.

start_depth="number" - Page depth to start listing pages from. Defaults to current page depth. Cannot exceed current page depth.

max_depth="number" - Maximum number of levels to list.

Example:

<r:ancestor_menu ul_id="ancestor" ul_class="menu" start_depth="1" max_depth="2" active_class="active" open_class="open">