---
schema_version: "1"
id: 5b55596c2152da436e659a604b0a3f0860f86d0b6cfea0db004238d6a9e4bc45
title: FeedLayout Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Metadata_FeedLayout.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: a91349aa489c485adebc64cf8ca8843eaa772f25a7a9d7a9356332d6b4b23de4
description: 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.Specifies whether the publisher is collapsed when the page loads (true) or not (false).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.Indicates where the feed filters list is included in the layout.The individual filters displayed in the feed filters list.Specifies whether the feed expands horizontally to take up all available space on the page (true) or not (false).Specifies whether the sidebar is hidden (true) or not (false).Controls whether to highlight external feed items (true) or not (false).The individual components displayed in the left column of the feed view.Lists the individual components displayed in the right column of the feed view.Indicates whether to use inline filters in the Salesforce console.Makes a duplicate copy of the Metadata.FeedLayout.
---
# 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Metadata.htm "The Metadata namespace provides classes and methods for working with custom metadata in Salesforce")

## Usage

Use this class when accessing [Metadata.Layout](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_Layout.htm#apex_class_Metadata_Layout "Represents the metadata associated with a page layout.") metadata components. For more information, see “FeedLayout” in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_intro.htm).

- **[FeedLayout Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_properties)**
- **[FeedLayout Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_methods)**

## FeedLayout Properties

The following are properties for FeedLayout.

- **[autocollapsePublisher](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_autocollapsePublisher)**  
    Specifies whether the publisher is collapsed when the page loads (true) or not (false).
- **[compactFeed](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_feedFilterPosition)**  
    Indicates where the feed filters list is included in the layout.
- **[feedFilters](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_feedFilters)**  
    The individual filters displayed in the feed filters list.
- **[fullWidthFeed](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_fullWidthFeed)**  
    Specifies whether the feed expands horizontally to take up all available space on the page (true) or not (false).
- **[hideSidebar](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_hideSidebar)**  
    Specifies whether the sidebar is hidden (true) or not (false).
- **[highlightExternalFeedItems](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_highlightExternalFeedItems)**  
    Controls whether to highlight external feed items (true) or not (false).
- **[leftComponents](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_leftComponents)**  
    The individual components displayed in the left column of the feed view.
- **[rightComponents](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_rightComponents)**  
    Lists the individual components displayed in the right column of the feed view.
- **[useInlineFiltersInConsole](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_FeedLayout_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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### feedFilterPosition

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

#### Signature

public Metadata.FeedLayoutFilterPosition feedFilterPosition {get; set;}

#### Property Value

Type: [FeedLayoutFilterPosition Enum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Metadata_FeedLayoutFilterPosition.htm#apex_enum_Metadata_FeedLayoutFilterPosition "Describes where the feed filters list is included in the layout.")

### feedFilters

The individual filters displayed in the feed filters list.

#### Signature

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

#### Property Value

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[FeedLayoutFilter Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutFilter.htm#apex_class_Metadata_FeedLayoutFilter "Represents a feed filter option in the feed view of a feed-based page layout. A filter can have only standardFilter or feedItemType set.")\>.

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### hideSidebar

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

#### Signature

public Boolean hideSidebar {get; set;}

#### Property Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### highlightExternalFeedItems

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

#### Signature

public Boolean highlightExternalFeedItems {get; set;}

#### Property Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[FeedLayoutComponent Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutComponent.htm#apex_class_Metadata_FeedLayoutComponent "Represents a component in the feed view of a feed-based page layout.")\>

### 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](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[FeedLayoutComponent Class](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayoutComponent.htm#apex_class_Metadata_FeedLayoutComponent "Represents a component in the feed view of a feed-based page layout.")\>

### useInlineFiltersInConsole

Indicates whether to use inline filters in the Salesforce console.

#### Signature

public Boolean useInlineFiltersInConsole {get; set;}

#### Property Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

## FeedLayout Methods

The following are methods for FeedLayout.

- **[clone()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_FeedLayout.htm#apex_Metadata_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