Kentico CMS 6.0 Controls

Configuration

Configuration

Previous topic Next topic Mail us feedback on this topic!  

Configuration

Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic!  

The following properties of the CMSMenu control can be set or used in the API:

 

All of the common properties from:

 

CMS controls - common properties

CMS navigation - common properties

 

In addition, the following properties are available:

 

Property Name

Description

Sample Value

Cursor

Determines the mouse cursor used when controlling the menu.

"Default"

"Pointer"

EnableMouseUpDownClass

Indicates whether the menu should render different CSS classes for mouse-up and mouse-down events.

 

EnableRTLBehaviour

Indicates whether a right-to-left layout should be used on documents displayed in a RTL culture.

 

EncodeMenuCaption

Indicates whether HTML encoding should be applied to the captions of menu items. Useful only in special cases where the names of the displayed documents contain HTML code.

 

ExternalScriptPath

Path of the external .js file with skmMenu scripts. The default path is ~/cmsscripts/skmmenu.js.

"~/myscripts/skmmenu.js"

HighlightedMenuItem

This property can be used to get the currently highlighted menu item and set its CSS classes.

 

HighlightedNodePath

Path of the item that should be highlighted as if it were selected. If you omit this value, the control automatically uses the current alias path from the aliaspath querystring parameter.

"/products/PDAs"

Layout

Determines the layout of the menu.

"Vertical"

"Horizontal"

MenuControl

This property can be used to access the menu (skmMenu) control and its CSS classes and properties.

 

Padding

Padding of the CMSMenu table.

 

RenderImageAlt

Indicates whether the ALT attribute should be rendered for images used in the menu (for XHTML compatibility).

 

RenderItemName

Indicates if the ItemName attribute of menu items should be rendered in the output HTML code.

 

SeparatorCssClass

CSS class of the separator cell (TD element) for the top menu level.

 

SeparatorHeight

Height of the separator placed between menu items of the top menu level.

 

SeparatorText

Text of the separator placed between menu items of the first menu level.

"|"

Spacing

Spacing of the CMSMenu table.

 

 

Method Name

Description

ReloadData(bool forceLoad)

Reloads the data.

 

If the forceLoad parameter is set to false and a value is assigned to the DataSource property, the properties of the CMSMenu control are not used and only the data from the DataSource is loaded.