{{ tables.getrecord }} – Get Record

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:

  1. Catalog Layout (optional)
  2. Record ID or filter (optional) – Example 1: 65, example 2: population>1000000
  3. Order 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.


What are your feelings

Leave a Reply

Updated on January 13, 2025