Attention

TYPO3 v8 has reached its end-of-life March 31st, 2020 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 recommended that you upgrade your project and use a supported version of TYPO3.

IMGMENU

Note

IMGMENU is a menu object type.

Imagemaps are made by creating one large GIFBUILDER object based on the GIFBUILDER object ".main" and adding the properties of the GIFBUILDER objects for each item (NO, ACT, SPC... and so on).

Property

target

Data type

target

Default

self

Description

Target of the menu links

Property

forceTypeValue

Data type

integer

Description

If set, the &type parameter of the link is forced to this value regardless of target.

Property

wrap

Data type

wrap

Description

Wraps the whole image-map.

Property

params

Data type

<img>-params

Property

main

Data type

->GIFBUILDER

Description

Main configuration of the image-map! This defines the "underlay"!

Property

dWorkArea

Data type

offset + calc

Description

Main offset of the GIFBUILDER-items (also called the "distribution")

Property

[Common Item States, see above]

Data type

->IMGMENUITEM

+ .distrib

Description

This is the TMENUITEM-options for each category of menu item that can be generated.

Special:

The ->OptionSplit function is run on the whole GIFBUILDER- configuration before the items are generated.

.distrib is (x,y,v,h +calc) of the distribution of the menu items. This provides a way to space each item from the other. The codes "textX" and "textY" can be used for the width (X) and height (Y) dimension of each link.

This works by adding a WORKAREA-Gifbuilder Object between each of the IMGMENUITEM ("subset" of a GIFBUILDER object) and this work area defines where the text should be printed. As such the "x,y" defines the offset the next item will have (this should be the width of the previous in many cases!) and "v,h" defines the dimensions of the current item.

Consider this example taken from the static_template "template: MM":

NO.distrib = textX+10, 0, textX+10, textY+5

In the future TypoScript may provide better ways to position GIFBUILDER objects on the image-maps!

ImgMap is automatically used on the links! (Meaning the ".imgMap" property of the TEXT objects in the GIFBUILDER objects is set automatically, unless it is already set.)

Property

imgMapExtras

Data type

<area...>-tags

Description

Extra <area...>tags for the image-map

Property

debugRenumberedObject

Data type

boolean

Description

if set, the final GIFBUILDER object configuration is output in order for you to debug your configuration

[tsref:(cObject).HMENU.(mObj).IMGMENU]