Main menu |
Top Previous Next |
Now we will add a dynamic drop-down menu to our master page. The drop-down menu can be implemented either by CMSMenu or CMSListMenu control. The first option is easier to use if you're not familiar with complex CSS styles, so we will use it now.
Please note: If you prefer using a drop-down menu based on the CSS styles and UL/LI elements, you can try to use the CMSListMenu later (you can find more details and examples in Kentico CMS Controls Reference).
Swith to the Source mode of the MyMaster.master page and drag and drop the CMSMenu control inside the <div class="MainMenu"> element. Remove the original <table> element used for the static menu. The main menu section will look like this:
Now switch back to the Design tab and set the following properties of the CMSMenu control:
The Path property value specifies that the menu should start from the root of the site structure. The Layout property allows you to choose between vertical and horizontal menu. The CSSPrefix property specifies the names of CSS styles for the top menu (standard style names) and for sub-menus (all style names are prefixed with sub). The Cursor property specifies the type of cursor when the user mouse-overs the menu.
Save the changes.
|