ePages 6.10 - DE_EPAGES/Presentation/API/TLE/MenuHandler.pm

Package DE_EPAGES::Presentation::API::TLE::MenuHandler

Implements the TLE block "MENU".

Functions

MENU
MENU_COUNT
MENU_ID

MENU

Use this statement to display the content of a menu. The following TLE variables are available inside the menu block:

If the menu is associated with an action, then the following additional variables are available:

Syntax
#MENU(#Name, #Separator) ... #ENDMENU
old syntax:
#BLOCK("MENU", #Name, #Separator) ... #ENDBLOCK
Example
#IF( #FUNCTION("MENU_COUNT", "Tabs") > 0 )
  <ul>
  #MENU( "Tabs", "|" )
    <li>#INCLUDE(#Template)</li>
  #ENDMENU
  </ul>
#ENDIF
Input
#Name (string)
name of a menu
#Separator (string)
(optional) separator between menu items

MENU_COUNT

Returns the number of items in a menu.

Syntax
#FUNCTION("MENU_COUNT", #Name)
Example
#FUNCTION("MENU_COUNT", "Tabs")
Input
#Name (string)
name of a menu

MENU_ID

Returns the identifier of a menu.

Syntax
#FUNCTION("MENU_ID", #Name)
Example
#FUNCTION("MENU_ID", "Tabs")
Input
#Name (string)
name of a menu