Newer Version Available
Create Custom Content Layout Components for Experience Builder
When you create a custom content layout component in the Developer Console, it appears in
Experience Builder in
the New Page and the Change Layout dialog boxes.
1. Add a New Interface to Your Content Layout Component
To appear in the New Page and the Change Layout dialog boxes in Experience Builder, a content layout component must implement the forceCommunity:layout interface.
2. Add a CSS Resource to Your Component Bundle
Next, add a CSS resource to style the content layout as needed.
Here’s the sample CSS for our simple two-column content layout.
CSS resources must be named componentName.css.
3. Optional: Add an SVG Resource to Your Component Bundle
You can include an SVG resource in your component bundle to define a custom icon for the content layout component when it appears in the Experience Builder.
The recommended image size for a content layout component in Experience Builder is 170px by 170px. However, if the image has different dimensions, Experience Builder scales the image to fit.
SVG resources must be named componentName.svg.