MagicCMS Documentation

MenuInfo Constructor (MagicPost, Int32, Boolean)

Initializes a new instance of the MenuInfo class extracting definition by a MagicPost element. If element post type is "Menu" the menu item is a sub menu otherwise is a link to a page or to a section of home page or to an external url, ecc.

Namespace:  MagicCMS.Core
Assembly:  MagicCMS.4.5 (in MagicCMS.4.5.dll)

Syntax


public MenuInfo(
	MagicPost mp,
	int pageId,
	bool isIconMenu
)

Parameters

mp
Type: MagicCMS.Core..::..MagicPost
The mp.
pageId
Type: Int32
Current page identifier.
isIconMenu
Type: Boolean
if set to trueLinkElement is composed only with icon.