In addition to data elements and custom code, you can also use content blocks as an alternative way to display data in a data repeater or in a page data connection. It's particularly useful for displaying field data that's inline with text.
Required Editions
| Available in: Salesforce Classic |
|
Available for purchase in: Enterprise, Performance, and Unlimited Editions Available (with limitations) in: Developer Edition |
| User Permissions Needed | |
|---|---|
| To build, edit, and manage Site.com sites: |
Site.com Publisher User field enabled on the user detail page AND Site administrator or designer role assigned at the site level |
When the page is open:
- Drag a Content Block page element from the Page Elements pane onto the data repeater. Alternatively, if the page has a page data connection, drag the Content Block page element directly onto the page canvas.
-
Enter the name of the field you want to display using an expression. For example, {!Name}.
Note The object's fields are listed first, followed by the fields of all parent objects, which use the format parent_object_name.field_name. -
Add any additional expressions or text you require. For example:
To contact {!Name}, call {!Phone}.
where {!Name} and {!Phone} are placeholders for the values of the Name and Phone fields of each record.
You can also use expressions if you're adding a hyperlink to the content block.
- Click Save.