Hide

YetaWF Documentation

Display
Print

YetaWF.Menus Package

Overview

This package implements menu support and menu editing services, including site main menu and popup menus.

The main menu, which is typically added to a skin for most pages, is not automatically generated based on your site's available pages. When renaming page Urls, the menus are not automatically updated. While this may seem somewhat inconvenient, the menus implemented by this package are completely under your control and can be freely customized.

Editing A Menu

In order to edit a menu, switch to Site Edit Mode. This makes the module actions and the module action menu available. The Main Menu Module and the Menu Module offer the Menu Settings action which can be used to edit the menu settings (using the Menu Edit Module).

Main Menu Module

Implements a main page menu, used on a site's pages. This is typically added to a site's skin. There is only one Main Menu Module for one site. If additional menus are needed, use the Menu Module. This module uses the YetaWF_Menus_Menu component.

Example Skin:

    await HtmlHelper.RenderUniqueModuleAsync("YetaWF.Menus", "YetaWF.Modules.Menus.Modules.MainMenuModule")

Modules

Module NameDescription
Main Menu ModuleImplements a menu. This is can be added to a site's skin or can be added to pages as needed.
Menu ModuleSimple and main page menus
Menu Edit ModuleImplements menu editing. This is used as part of the Main Menu Module and the Menu Module to edit menu settings when in Site Edit Mode.
Menu Toggle ModuleUsed to display a menu toggle button on small screens.

License

The YetaWF.Menus package is part of YetaWF, an open source product licensed under the GNU General Public License, version 3 (GPL-3.0) - Copyright - Softel vdm, Inc.