pbTables
Snippet for displaying tables.
Parameters
| Parameter | Default | Description |
|---|---|---|
| fieldName | Name 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'
]}