Class TemplateNavigation


  • public class TemplateNavigation
    extends Object
    Returns output of a Navigation module. An instance of this is placed in the WebMacro context by the WebMacroSiteLayout. This allows template authors to set the navigation template they'd like to place in their templates. Here's how it's used in a template:

    $navigation.setTemplate("admin_navigation.wm")

    Version:
    $Id$
    Author:
    Dave Bryson
    • Constructor Detail

    • Method Detail

      • setTemplate

        public TemplateNavigation setTemplate​(String template)
        Set the template.
        Parameters:
        template - A String with the name of the navigation template.
        Returns:
        A TemplateNavigation (self).
      • toString

        public String toString()
        Builds the output of the navigation template.
        Overrides:
        toString in class Object
        Returns:
        A String.