Skip to content

Templates

Ahmed Abbas edited this page Jul 13, 2025 · 7 revisions

Templates

The native Content Template element is required for displaying the dynamically loaded content.

Definitions

  1. Token: A deeply nested property at the JSON response of OGGEH API.
  2. Placeholder: A special marker for displaying the above token inside double-curly braces. Example: {{ subject }}

Notes

  1. All templates accept placeholder tokens inside double-curly braces. Example: {{ subject }}
  2. Nested properties can be chained using dot . Example: {{ conver.regular.url }}

Supported Modifiers

Modifier Description Example
is Decides to display token value if it exists or is empty {{ fax | is(fax) }}
fallback Decides to display an alternative value if the token does not exist or is empty {{ cover.maximum.url | fallback('data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==') }}
join Concatenates token list using the provided separator {{ tags | join(', ') }}
trim Truncate long text after a specified number of words {{ subject | trim(10) }}
formatDate Displays unix timestamp in the following format MMM DD, YYYY {{ timestamp | formatDate }}
formatTime Displays unix timestamp in the following format HH:MM:SS AM/PM {{ timestamp | formatTime }}

In this Section

  1. Navigation
  2. Page Blocks
  3. News
  4. Search Results
  5. Handling Forms

Clone this wiki locally