Globals
Textstem globals are items of content available anywhere at anytime. There are several different types of global, including -
Base types:
- array
- boolean
- html
- json
- number
- string
Rich types
- list
- pages
The type defines both the underlaying data type (and how it is stored), as well as the UI elements used to enter the value and how it should be treated. For example, the pages type will store an array of IDs as a JSON array in the database, but the UI widget to select the IDs is a 'page picker' widget and the value is a collection of pages.
By default, globals are loaded into a memory cache with each page load and available for use in page templates and page components. Globals can be marked as 'lazy' and are only loaded when needed.