Configuration

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

The following properties of the CMSSiteMap 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

ApplyMenuInactivation

Indicates whether the site map should apply the menu inactivation flag.

 

EncodeMenuCaption

Indicates whether the menu captions should be HTML encoded.

 

LoadDataAutomaticaly

Indicates whether data for the control should be loaded automatically. By default, the data is loaded automatically.

 

If you set this property to false, you can enter a custom DataSet into the DataSource property and then call the ReloadData(false) method.

 

OrderBy

Gets or sets the ORDER BY clause of the SQL statement.

 

Please be aware that it is necessary for the root of the displayed tree (or sub-tree) to be first in the resulting order, otherwise all documents may not be displayed correctly. This can be ensured by having the value of this property start with the NodeLevel column, such as in the sample value.

"NodeLevel, NodeOrder"

RenderedHTML

Allows you to get or set the HTML code rendered by the control.

 

You need to set this property before the Render event - e.g. in the OnLoad event.

 

RenderLinkTitle

Specifies if the document name should be rendered as a TITLE tag of links (for better accessibility).

 

UrlTarget

Specifies the target frame for all URLs.

"_blank"

 

Mentioned method:

 

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 CMSSiteMap control are not used and only the data from the DataSource is used.

 

Page url: http://devnet.kentico.com/docs/5_5r2/controls/index.html?cmssitemap_configuration.htm