Skip to content

pbTables

Snippet for displaying tables.

Parameters

ParameterDefaultDescription
fieldNameName of field with type table

Examples

Collection output

php
{'!pbTables'|snippet: [
    'fieldName' => 'products',
    'tpl' => 'name_chunk'
]}

Displaying table from another resource

php
{'!pbTables'|snippet: [
    'resource_id' => 7,
    'fieldName' => 'products',
    'tpl' => 'name_chunk'
]}

Displaying table user

php
{'!pbTables'|snippet: [
    'userId' => 7,
    'fieldName' => 'products',
    'tpl' => 'name_chunk'
]}

© PageBlocks 2019-present