ContentArea
Overview
For classic content, returns content contained in the specified stored content area. For Content Builder, use ContentBlockById.Syntax
ContentArea(1, 2, 3, 4, 5)
| Ordinal | Type | Description | |
|---|---|---|---|
| 1 | numeric | Required | The ID of the content area to return |
| 2 | string | Name of the impression region to start | |
| 3 | boolean | Determines whether the function returns an error when the system cannot locate the specified content area or returns an invalid content area. A value of true returns an error. A value of false does not return an error. Defaults to true. | |
| 4 | string | Default content to return if an error occurs. Defaults to an empty string. | |
| 5 | numeric | Output parameter that returns the status of the call. A value of 0 indicates the function found the content area and successfully rendered the content. A value of -1 indicates either no content or an invalid content area. |
Usage
%%=ContentArea('14')=%%
The system returns the content of content area 14.