Article

Overview #

Article selection.

Field Type Parameters: #

  1. Category ID – Category ID to allow selection from that category only.

Value Processing Parameters: #

Basic usage:

{{ FieldName }}

Usage with parameters:

{{ FieldName(What to show, Limit Output, Length, Clean Braces, Clean Quotes, Format) }}
  1. What to show – What information about the article to show.
  2. Limit Output – Limits returning output text, first number of characters or first number of words.
    • (Default. Returns as it is)
    • chars – (Returns first number of characters from text that was trimmed, sanitized and HTML tags stripped.)
    • words – (Returns first number of words from text that was trimmed, sanitized and HTML tags stripped.)
    • firstimage – (Returns the link to a first image found in the text.)
  3. Length – Number of characters or words.
    • Default:
    • Min: 1
    • Max: 1024
  4. Clean Braces – Deletes all braces from the text. (i.e. to avoid Content Plugins running.)
    • (No – default)
    • true: Yes
  5. Clean Quotes – Deletes all quotes from the text.
    • (No – default)
    • true: Yes
  6. Format – The PHP date format ‘Y-m-d h:i:s’ can be applied to date type fields.

Example:

{{ FieldName("introtext",50,1,true,true,"Y-m-d") }}


Pure Value (Unprocessed): #

Example:

{{ FieldName.value }}


Edit Record Parameters: #

Basic usage:

{{ FieldName.edit }}

Usage with parameters:

{{ FieldName.edit(CSS Class, Attributes) }}
  1. CSS Class – Name or names of CSS classes.
  2. Attributes – Optional attributes like: disabled, onclick, onchange, etc.

What are your feelings

Leave a Reply

Updated on January 9, 2025