- Home
- Pages
- Types
Types
- String
- Will return up to 255 characters
- Integer
- Reference
- Essentially an integer field, but specifying the ID of another model.
- ID
- An integer, usually that matches an existing record
- Text
- A large text field
- Email
- A valided email i.e. person@domain.com
- Color
- A color hex i.e. #FFFFFF
- Boolean
- A true/false value, may be presented as true/false or 1/0
- JSON
- An encoded JSON string
- Array
- A key/value array or object
- Country
- A list of countries, will normally pass back the string name i.e. United Kingdom
- Decimal
- Maximum of 15,2 decimal number
- Timestamp
- A unix timestamp representation of a date and time.
- User Agent
- A user agent string i.e. Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.75 Safari/535.7
- HTML
- Contains a string of HTML, possibly with template tags embedded using {{tag}} syntax.