Class TreeMenuPageInclude

java.lang.Object
fr.paris.lutece.plugins.menus.web.TreeMenuPageInclude
All Implemented Interfaces:
fr.paris.lutece.portal.service.includes.PageInclude

public class TreeMenuPageInclude extends Object implements fr.paris.lutece.portal.service.includes.PageInclude
This class provides the list of the page associated by the main menu of the site
  • Constructor Details

    • TreeMenuPageInclude

      public TreeMenuPageInclude()
  • Method Details

    • fillTemplate

      public void fillTemplate(Map<String,Object> rootModel, fr.paris.lutece.portal.service.content.PageData data, int nMode, jakarta.servlet.http.HttpServletRequest request)
      Substitue specific Freemarker markers in the page template.
      Specified by:
      fillTemplate in interface fr.paris.lutece.portal.service.includes.PageInclude
      Parameters:
      rootModel - the HashMap containing markers to substitute
      data - A PageData object containing applications data
      nMode - The current mode
      request - The HTTP request
    • getTreeMenuPage

      public String getTreeMenuPage(int nIdPage, int nMode, Menus menus, jakarta.servlet.http.HttpServletRequest request)
      Builds the tree menu bar
      Parameters:
      nIdPage - The page id
      nMode - the mode id
      menus - the current menu
      request - The HttpServletRequest
      Returns:
      The list of the tree menus layed out with the stylesheet of the mode