Core Documentation

Here you will find the new official reference manuals. These documents are related to the core of TYPO3 and address the built in functionality of TYPO3. They are designed to provide you with in-depth information.

Old Core Documentation


10.12. JSMENUITEM:

Property:

Data type:

Description:

Default:

noLink

boolean

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 menuitems in the selector box will ever link to anything. Only update the content of the next selector box on next level.

alwaysLink

boolean

If set an item in the menu selector will always link. This takes precedence over "noLink".

showFi rst

boolean

if set, the first link will be shown when the menu is updated.

showActive

boolean

if set, the active level will be selected, if present

wrap

wrap

wraps the selectorbox

width

int+

Initial width of the boxes set by a number of _ (underscores)

14

elements

int+

Initial number of elements in the menu.  This is of course overruled by the actual menu item texts.

5

additionalParams

string

Additional parameters to the <select> box. Eg, you could set the width with a style-parameter like this:

style="width: 200px;"

firstLabel

string

Firt 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 on page.
page = PAGE
page.typeNum =0
page.5 = TEXT
page.5.field = title
page.10 < temp.jsmenu

This draws a menu with two selector boxes