Skip to main content Skip to navigation

Navigation

<script type="text/javascript" src="/fac/soc/economics/apps/navigation/jquery.navigation.min.js">      

Options

parent

Type: Boolean
Default: true

If true will list subpages, false will list subpages of parent page (including itself).


showParent

Type: Boolean/Number
Default: true

Show the parent link in the navigation. Can also be number for number of parents to display.


nextPrev

Type: Boolean
Default: false

Only return the next and previous pages.


recursive

Type: Number
Default: 1

Number of levels of recursion to obtain pages.


url

Type: String
Default: null

Page URL, default null will use automatically generated url.


toc

Type: Boolean
Default: false

Use default sitebuilder children navigation (visibility will emulate sitebuilder top bar navigation) or toc (all files under page).


keywords/categories

Type: Comma-separate string
Default: null

toc:true only! specify the pages to include based on keywords.


ignored_keywords

Type: Comma-separate string
Default: 'hidden'

toc:true only! specify the pages to exclude based on comma seperated keywords.


ignored_categories

Type: Comma-separate string
Default: 'null'

Same as ignored_keywords but with no default value.


title

Type: Callback

Prior to each title being drawn you can return a modified string. There are 2 parameters supplied function(title, url) {}.


draw

Type: Callback

Callback after each child page request (only useful if recursive > 1 otherwise it will act like complete).


complete

Type: Callback

Script complete.


Demos

<script>
jQuery(document).ready(function() {
  jQuery("#example1").navigation({
    'url':'/fac/soc/economics'
  });
});
</script>      

    Demo 2 - Auto URL and Child Page (retrieves parents menu)

    <script>
    jQuery(document).ready(function() {
      jQuery("#example1").navigation({
        'parent':false
      });
    });
    </script>      

      Demo 3 - Show multiple parents

      <script>
      jQuery(document).ready(function() {
        jQuery("#example1").navigation({
          'url':'/fac/soc/economics/current/ug/handbook/',
          'toc':true,
          'showParent':3
        });
      });
      </script>