<r:sub_menu />

Lists the child pages that are direct descendants of the current page as an unordered list.

So, if you had:

  • Parent 1
    • Child 1
    • Child 2
    • Child 3
  • Parent 2
  • Parent 3
    • Child 4
    • Child 5
    • Child 6
  • Parent 4

...and you put <r:sub_menu />on "Parent 1", it will list "Child 1", "Child 2", and "Child 3".

If you put <r:sub_menu />on "Parent 2", no pages would be listed.

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.

max_depth="number" - The number of levels from the root level that CleanSlate should list navigation for.

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.

has_children_class="your-class" - Adds a class to any <li> that contains and unordered list.

Example:

<r:sub_menu ul_id="ancestor" ul_class="menu" active_class="active" open_class="open" max_depth="2" has_children_class="your-class" /> />

Last updated on January 30, 2015.

We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information:

  • A brief description of the issue
  • A link to the page where you saw the issue
  • Screenshots that illustrate the problem - How do I take a screenshot?

Kindly email CleanSlate@mail.wvu.edu for help or use the form on the request help page.