{{ record.published }} – Published

Returns the «Yes» word (language depended) if the record is published and «No» if not.

Basic usage:

{{ record.published }}

Usage with parameters:

{{ record.published(Format, Custom Text (Published), Custom Text (Unpublished)) }}

Parameters:

  1. Format (optional) – What type of value to return.
    • (Default. Text (Yes/No). Word ‘Yes’ will be returned if the record is published. Or Word ‘No’ instead.)
    • number – (Number (1/0). Number ‘1’ will be returned if the record is published. Or number ‘0’ instead..)
    • boolean – (Boolean (true,false). Word ‘true’ will be returned if record is published or word ‘false’ instead.)
    • custom – (Custom. Custom text to show if the record is published.)
  2. Custom Text (Published) (optional) – Custom text to show if the record is published
  3. Custom Text (Unpublished) (optional) – Custom text to show if the record is published

Example:

{{ record.published("number") }}


What are your feelings

Leave a Reply

Updated on January 9, 2025