Tokens are small bits of code that let you integrate LightCMS's dynamic content management functionality with your website designs.  This section provides detailed information about our tokens and how to utilize them.

Root Menu

Token
<$rootmenu/$> 
Purpose This token outputs an unordered list of hyperlinked menu items for each top-level page in your site.  Top level pages are those pages whose parent page is "Home." 
Attributes
  • cssClass=  used to specify your own custom CSS class for use in styling the menu list.  This class is attached to the <ul> tag.
  • showHome=  determines whether or not "Home" is output as the first item in the menu item list.  This can be set as "true" or "false."  Default is "true."
CSS
  • The CSS class, "selectedPageRoot" is output in both the list item <li> and link <a> tags surrounding the menu item that represents the current page's root.  This allows you to style the current page's root menu item differently from the rest of the menu items in the navigation list.
  • The CSS class, "selectedPage" is output in both the list item <li> and link <a> tags surrounding the menu item that represents the current page.  This allows you to style the current page's menu item differently from the rest of the menu items in the navigation list.
  • The CSS class, "hasChildren" is output on the list item <li> surrounding any menu item representing a page that has one or more child pages.
Example Usage
Use this token to create a top-level navigation menu for your website.  Use CSS to style the resulting unordered list of links as desired:

<$rootmenu cssClass="topNav" showHome="false"/$>