Package DE_EPAGES::Presentation::API::TLE::MenuHandler
Implements the TLE block "MENU".
Functions
MENU
Use this statement to display the content of a menu. The following TLE variables are available inside the menu block:
- Template - menu item template name (used by INCLUDE) - string
- MenuID - menu item id - integer
- Position - relative menu item position - integer
- MenuItemNo - actual menu item index (0, 1, 2, ...) - integer
- URLAction - action alias - string
- Action - action object (see class: Action) - object
- IsActive - true if the menu item is currently selected - boolean
- HelpFileTopic - URL of the help file topic - string
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 |
|
MENU_COUNT
Returns the number of items in a menu.
Syntax |
#FUNCTION("MENU_COUNT", #Name) |
Example |
#FUNCTION("MENU_COUNT", "Tabs") |
Input |
|
MENU_ID
Returns the identifier of a menu.
Syntax |
#FUNCTION("MENU_ID", #Name) |
Example |
#FUNCTION("MENU_ID", "Tabs") |
Input |
|