Renders another table single record using selected layout.
Basic usage:
{{ tables.getrecord }}
Usage with parameters:
{{ tables.getrecord(Catalog Layout, Record ID or filter, Order By Field) }}
Parameters:
Catalog Layout
(optional)Record ID or filter
(optional) – Example 1: 65, example 2: population>1000000Order By Field
(optional) – Optional and is used with the Filter not Record ID
Example:
{{ tables.getrecord("CountriesPage",62) }}
If Record ID or filter not provided then the first record in the table. This can be useful to show last record ordered by date for example.
Note: Before version 3.4.9 the tag {{ tables.getrecord(“LayoutName”,””) }} was returning an empty string “”, but since 3.4.9 it returns the first record in the table.
Leave a Reply
You must be logged in to post a comment.