Which tab (i.e. edit mode group) the property belongs to.

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

Syntax

C#
public int OwnerTab { get; set; }

Remarks

Used to group properties for editing purposes. See EditTab for a list of predifined tabs. If this value is set to a non-existing tab the property will not be rendered in EPiServers edit mode.

Examples

This exemple shows how to hide a group of properties
CopyC#
protected void Application_Start(Object sender, EventArgs e)
{
    EPiServer.DataFactory.Instance.LoadedPage += new EPiServer.PageEventHandler(EPDataFactory_LoadedPage);
}

private void EPDataFactory_LoadedPage(object sender, EPiServer.PageEventArgs e)
{
    e.Page.Property["PageShortcutType"].OwnerTab = -1;
    e.Page.Property["PageShortcutLink"].OwnerTab = -1;
    e.Page.Property["PageTargetFrame"].OwnerTab = -1;
    e.Page.Property["PageLinkURL"].OwnerTab = -1;
}

See Also