Attention
TYPO3 v6 has reached its end-of-life April 18th, 2017 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.
There is no further ELTS support. It is strongly recommended updating your project.
JSMENUITEM¶
Property
noLink
Data type
boolean
Description
Normally the selection of a menu item in the selector box will update the selector on the next level (if there is a next level) and if there are no items for that selector (because there were no subpages), then the link jumps to the page of itself.
If this flag is set, however, no menu items in the selector box will ever link to anything. Only update the content of the next selector box on next level.
Property
alwaysLink
Data type
boolean
Description
If set an item in the menu selector will always link. This takes precedence over "noLink".
Property
showFi rst
Data type
boolean
Description
if set, the first link will be shown when the menu is updated.
Property
showActive
Data type
boolean
Description
if set, the active level will be selected, if present
Property
wrap
Data type
wrap
Description
wraps the selector box
Property
width
Data type
positive integer
Description
Initial width of the boxes set by a number of _ (underscores)
Default
14
Property
elements
Data type
positive integer
Description
Initial number of elements in the menu. This is of course overruled by the actual menu item texts.
Default
5
Property
additionalParams
Data type
string
Description
Additional parameters to the <select> box. E.g. you could set the width with a style-parameter like this:
additionalParams = style="width: 200px;"
Property
firstLabel
Data type
string
Description
First label in top of the menu (default is blank).
[tsref:(cObject).HMENU.(mObj).JSMENUITEM]
Example:¶
# The menu:
temp.jsmenu = HMENU
temp.jsmenu.1 = JSMENU
temp.jsmenu.1 {
levels = 2
1.wrap = |<br>
2.wrap = |<hr>
}
# Insert the menu on the page.
page = PAGE
page.typeNum = 0
page.5 = TEXT
page.5.stdWrap.field = title
page.10 < temp.jsmenu
This draws a menu with two selector boxes.