FeedLayout Class

Represents the values that define the feed view of a feed-based page layout. Feed-based layouts are available on Account, Case, Contact, Lead, Opportunity, custom, and external objects. They include a feed view and a detail view.

Namespace

Metadata

Usage

Use this class when accessing Metadata.Layout metadata components. For more information, see “FeedLayout” in the Metadata API Developer Guide.

FeedLayout Properties

The following are properties for FeedLayout.

  • autocollapsePublisher
    Specifies whether the publisher is collapsed when the page loads (true) or not (false).
  • compactFeed
    Specifies whether the feed-based page layout uses a compact feed (true) or not (false). If set to true, feed items on the page are collapsed by default, and the feed view has an updated design.
  • feedFilterPosition
    Indicates where the feed filters list is included in the layout.
  • feedFilters
    The individual filters displayed in the feed filters list.
  • fullWidthFeed
    Specifies whether the feed expands horizontally to take up all available space on the page (true) or not (false).
  • hideSidebar
    Specifies whether the sidebar is hidden (true) or not (false).
  • highlightExternalFeedItems
    Controls whether to highlight external feed items (true) or not (false).
  • leftComponents
    The individual components displayed in the left column of the feed view.
  • rightComponents
    Lists the individual components displayed in the right column of the feed view.
  • useInlineFiltersInConsole
    Indicates whether to use inline filters in the Salesforce console.

autocollapsePublisher

Specifies whether the publisher is collapsed when the page loads (true) or not (false).

Signature

public Boolean autocollapsePublisher {get; set;}

Property Value

Type: Boolean

compactFeed

Specifies whether the feed-based page layout uses a compact feed (true) or not (false). If set to true, feed items on the page are collapsed by default, and the feed view has an updated design.

Signature

public Boolean compactFeed {get; set;}

Property Value

Type: Boolean

feedFilterPosition

Indicates where the feed filters list is included in the layout.

Signature

public Metadata.FeedLayoutFilterPosition feedFilterPosition {get; set;}

Property Value

Type: FeedLayoutFilterPosition Enum

feedFilters

The individual filters displayed in the feed filters list.

Signature

public List<Metadata.FeedLayoutFilter> feedFilters {get; set;}

Property Value

Type: List<FeedLayoutFilter Class>.

fullWidthFeed

Specifies whether the feed expands horizontally to take up all available space on the page (true) or not (false).

Signature

public Boolean fullWidthFeed {get; set;}

Property Value

Type: Boolean

hideSidebar

Specifies whether the sidebar is hidden (true) or not (false).

Signature

public Boolean hideSidebar {get; set;}

Property Value

Type: Boolean

highlightExternalFeedItems

Controls whether to highlight external feed items (true) or not (false).

Signature

public Boolean highlightExternalFeedItems {get; set;}

Property Value

Type: Boolean

leftComponents

The individual components displayed in the left column of the feed view.

Signature

public List<Metadata.FeedLayoutComponent> leftComponents {get; set;}

Property Value

Type: List<FeedLayoutComponent Class>

rightComponents

Lists the individual components displayed in the right column of the feed view.

Signature

public List<Metadata.FeedLayoutComponent> rightComponents {get; set;}

Property Value

Type: List<FeedLayoutComponent Class>

useInlineFiltersInConsole

Indicates whether to use inline filters in the Salesforce console.

Signature

public Boolean useInlineFiltersInConsole {get; set;}

Property Value

Type: Boolean

FeedLayout Methods

The following are methods for FeedLayout.

  • clone()
    Makes a duplicate copy of the Metadata.FeedLayout.

clone()

Makes a duplicate copy of the Metadata.FeedLayout.

Signature

public Object clone()

Return Value

Type: Object