To display the blocks, use the PageBuilder snippet with the following parameters:
Parameter | Default value | Possible values |
---|---|---|
docid | Current document | Identifier of any existing document, an integer |
container | default | Names of the containers, comma separated |
blocks | * | The list of blocks is separated by commas, without spaces. The name of the configuration file is taken without the extension (For example, `all_fields, groups`). If you specify `*`, the filter by name will not be applied |
wrapTpl | [+wrap+] | The name of the chunk containing the wrapper template for the list of blocks of the output container |
templates | The identifier of the template group to be used for output. It must be defined in the configuration of each output block | |
offset | 0 | Number of skipped blocks from the beginning of the output |
limit | 0 | The number of blocks for output, or 0 for all |
renderTo | templates | Output type: `templates` - through templates, `array` - as array, `json` - as json. |
giveTo | If the parameter is set, the result data will be transferred to the snippet specified in this parameter, and then the result of this snippet will be showed |