Indicates whether this page should be visible in menus and tree structures.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236


public bool VisibleInMenu { get; set; }


This setting is important for several of the Web custom controls in EPiServer.Web.WebControls.

Setting VisibleInMenu to false is a preparation for storing the user profile page and making sure that it won't be displayed with the other Web pages in the site's Web page tree, which would otherwise happen automatically.

VisibleInMenu is stored in the column VisibleInMenu in database table tblPage.


The following code example demonstrates the usage of VisibleInMenu and is taken from code-behind file for the Web user control Profile.ascx, which is shipped with EPiServer.
CurrentPage.VisibleInMenu = false;

See Also