Kentico CMS 7.0 Tutorial  

Main menu

Main menu

Previous topic Next topic Mail us feedback on this topic!  

Main menu

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

Now we will add a dynamic menu to the master page.

 

1. Select the root document (My website) in the CMS Desk content tree and open the Design tab.

 

2. Click Add (AddWebPart) in the corner of the zoneMenu zone.

 

3. Select the Navigation -> Drop-down menu web part.

 

tutorial_clip0107

 

4. Click OK. The Web part properties dialog opens.

 

5. Set the following properties of the web part (in the Design section):

 

Property

Value

Description

CSSPrefix

;sub

Allows you to add prefixes before the names of the CSS classes applied to the menu. The ;sub value uses unmodified class names for the main (first) menu level and the sub prefix for the second level and all other sub-levels.

Layout

Horizontal

Sets a horizontal layout for the menu.

 

6. Click OK.

 

If you switch to the Page tab, the page now contains a dynamic menu that displays the child pages: Home and News.

 

tutorial_clip0108