HomePageLayout defines which components appear on a home page, with a narrow column on the left and a wide column on the right. You can customize layouts and assign them to users based on their user profile. The layout definition controls page composition; profile assignments determine which users receive it.
This type is separate from Layout, which represents an object page layout. It is also separate from HomePageComponent: a home page layout references components and places them in columns rather than embedding their definitions.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Identifies the layout. Inherited from Metadata and required for Metadata API create, update, and delete operations. The name must start with a letter, cannot end with an underscore, and cannot contain consecutive underscores. |
narrowComponents |
A repeatable string list referencing HomePageComponent assets placed in the narrow, left-hand column. |
wideComponents |
A repeatable string list referencing HomePageComponent assets placed in the wide, right-hand column. |
Behavior and Constraints
Component content and component placement are separate concerns. Changing a referenced component can affect layouts that use it. Changing the layout controls whether the component is included and which column contains it.
The component lists contain references, not the component definitions themselves. Understanding the page's content therefore requires both the layout and its referenced components.
A layout definition does not establish its user scope. Profile-based assignments determine who receives the layout. When diagnosing why a user sees a different home page, distinguish the layout's component lists from the user's profile assignment.
Deployment and Retrieval
In Metadata API package format, home page layouts are stored in the homePageLayouts directory with the .homePageLayout extension.
In package.xml, the manifest that selects metadata for deployment or retrieval, use HomePageLayout as the type name. Use the layout's metadata identity for a specific member. Do not request it under Layout or construct an object-layout identity by adding a Home- prefix.
The type supports the wildcard * for retrieving all home page layouts:
<types><members>*</members><name>HomePageLayout</name></types>
The layout file does not replace the referenced HomePageComponent definitions. Those components are separate assets needed to interpret the page's content. Likewise, the layout definition alone does not establish profile assignments.
For Metadata API create, update, and delete operations, supply the layout's inherited fullName.
Relationships
The direct element references connect the layout to its component definitions. Profile-based assignment is a separate configuration concern; neither component list specifies which users receive the layout.
References
-
HomePageComponent:narrowComponents,wideComponents.
Reported Issues
-
A profile-specific home layout was not retrieved when requested under the wrong metadata type. In a 2016 report, the manifest requested
Home-Service LayoutunderLayout. The accepted answer recommended requesting the layout underHomePageLayout, using either its member name or*. The correction concerned metadata type selection, not a requirement to rename the layout. Home layout retrieval discussion. -
Apex queries were reported as unavailable for this type. A 2021 community inventory listed
HomePageLayoutamong Tooling API objects unavailable in the ApexSchemanamespace and not queryable from Apex. This concerns Apex query access, not Metadata API retrieval. Apex query availability discussion.
Common Questions
How do I retrieve all home page layouts in package.xml?
Use HomePageLayout as the type name and * as the member. The type supports wildcard retrieval.
Why does requesting my home page under Layout return nothing?
A home page layout uses the separate HomePageLayout metadata type. Request its metadata identity under that type rather than using an object-layout-style Home- prefix under Layout.
Does HomePageLayout include the component definitions?
No. narrowComponents and wideComponents reference separate HomePageComponent assets. They control inclusion and column placement.
Does deploying a home page layout assign it to users?
The layout definition alone does not determine who receives it. Profile-based assignments determine the user scope.